-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
local_working_copy: filter deleted files per directory (or job)
This greatly reduces the amount of paths to be sent over the channel. Benchmark: - jj-1: previous - jj-2: this patch gecko-dev (large): ``` % JJ_CONFIG=/dev/null hyperfine --sort command --warmup 3 --runs 10 -L bin jj-0,jj-1,jj-2 \ 'target/release-with-debug/{bin} -R ~/mirrors/gecko-dev debug snapshot' Benchmark 2: target/release-with-debug/jj-1 -R ~/mirrors/gecko-dev debug snapshot Time (mean ± σ): 659.6 ms ± 11.8 ms [User: 2673.2 ms, System: 1882.1 ms] Range (min … max): 649.2 ms … 690.1 ms 10 runs Benchmark 3: target/release-with-debug/jj-2 -R ~/mirrors/gecko-dev debug snapshot Time (mean ± σ): 440.5 ms ± 11.8 ms [User: 2811.0 ms, System: 1967.9 ms] Range (min … max): 432.7 ms … 473.0 ms 10 runs Relative speed comparison 1.50 ± 0.05 target/release-with-debug/jj-1 -R ~/mirrors/gecko-dev debug snapshot 1.00 target/release-with-debug/jj-2 -R ~/mirrors/gecko-dev debug snapshot ``` linux (mid-size): ``` % JJ_CONFIG=/dev/null hyperfine --sort command --warmup 3 --runs 10 -L bin jj-0,jj-1,jj-2 \ 'target/release-with-debug/{bin} -R ~/mirrors/linux debug snapshot' Benchmark 2: target/release-with-debug/jj-1 -R ~/mirrors/linux debug snapshot Time (mean ± σ): 225.5 ms ± 4.2 ms [User: 563.3 ms, System: 475.8 ms] Range (min … max): 218.7 ms … 231.4 ms 10 runs Benchmark 3: target/release-with-debug/jj-2 -R ~/mirrors/linux debug snapshot Time (mean ± σ): 189.6 ms ± 3.3 ms [User: 587.6 ms, System: 475.7 ms] Range (min … max): 183.7 ms … 196.5 ms 10 runs Relative speed comparison 1.19 ± 0.03 target/release-with-debug/jj-1 -R ~/mirrors/linux debug snapshot 1.00 target/release-with-debug/jj-2 -R ~/mirrors/linux debug snapshot ```
- Loading branch information
Showing
2 changed files
with
116 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters