Skip to content

regression: dvc init is slow #6707

Description

@skshetry

The 3 major issue seems to be:

The following is a startup log for dvc init.
Screen Shot 2021-09-29 at 17 52 16

Following is the benchmark for dvc init.

$ hyperfine "dvc init" --warmup 3 -p "rm -rf .dvc"
Benchmark #1: dvc init
  Time (mean ± σ):      1.311 s ±  0.065 s    [User: 1.066 s, System: 0.203 s]
  Range (min … max):    1.230 s …  1.435 s    10 runs

dvc init crossing 1 sec is really bad, this was the result a month ago (before tpi and prompts, and with fsspec.Callback made lazy):

$ hyperfine "dvc init" --warmup 3 -p "rm -rf .dvc"
Benchmark #1: dvc init
  Time (mean ± σ):     506.8 ms ±  31.4 ms    [User: 369.2 ms, System: 103.7 ms]
  Range (min … max):   477.4 ms … 566.6 ms    10 runs

Metadata

Metadata

Assignees

Labels

p2-mediumMedium priority, should be done, but less importantperformanceimprovement over resource / time consuming tasksregressionOhh, we broke something :-(

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions