ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib
Yuya Nishihara 879f585b21 repo: leverage stored index to calculate shortest prefix in commit id space
With my "jj" work repo, this saves ~4ms to show the log with default revset.

Command:
    JJ_CONFIG=/dev/null hyperfine --warmup 3 --runs 100 \
      "jj log -T 'commit_id.short_prefix_and_brackets() \
                  change_id.short_prefix_and_brackets()' \
              --no-commit-working-copy"

Baseline (a7541e1ba4):
    Time (mean ± σ):      54.1 ms ±  16.4 ms    [User: 46.4 ms, System: 7.8 ms]
    Range (min … max):    36.5 ms …  78.1 ms    100 runs

This commit:
    Time (mean ± σ):      49.5 ms ±  16.4 ms    [User: 42.4 ms, System: 7.2 ms]
    Range (min … max):    31.4 ms …  70.9 ms    100 runs
2023-01-22 17:24:03 +09:00
..
gen-protos
src repo: leverage stored index to calculate shortest prefix in commit id space 2023-01-22 17:24:03 +09:00
tests
testutils cargo: bump git2 from 0.16.0 to 0.16.1 2023-01-21 00:05:57 +00:00
build.rs
Cargo.toml cargo: bump git2 from 0.16.0 to 0.16.1 2023-01-21 00:05:57 +00:00