dvc: optimize imports to speedup startup time

Speeds up `time dvc` from 1.2 seconds to <0.2 seconds.

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-07-18 11:20:05 +03:00
parent f54428d5ed
commit 3410f8048a
10 changed files with 64 additions and 26 deletions
+1 -2
View File
@@ -25,7 +25,6 @@ from dvc.command.install import CmdInstall
from dvc.command.root import CmdRoot
from dvc.command.lock import CmdLock, CmdUnlock
from dvc.command.pipeline import CmdPipelineShow
from dvc.stage import Stage
from dvc import VERSION
@@ -268,7 +267,7 @@ def parse_args(argv=None):
repro_parser.add_argument(
'targets',
nargs='*',
default=[Stage.STAGE_FILE],
default=['Dvcfile'],
help='DVC file to reproduce.')
repro_parser.add_argument('-f',
'--force',