forked from mirrors/jj
493f610fd5
We can assign a unique integer to each (word, occurrence) pair instead. As a bonus, HashMap can be replaced with Vec. ``` group new old ----- --- --- bench_diff_git_git_read_tree_c 1.00 72.5±3.25µs 1.08 78.5±0.48µs bench_diff_lines/modified/10k 1.00 45.1±1.18ms 1.10 49.8±1.85ms bench_diff_lines/modified/1k 1.00 4.1±0.07ms 1.11 4.5±0.34ms bench_diff_lines/reversed/10k 1.00 19.0±0.12ms 1.12 21.2±1.26ms bench_diff_lines/reversed/1k 1.00 558.5±37.42µs 1.17 655.6±16.27µs bench_diff_lines/unchanged/10k 1.00 5.3±0.78ms 1.33 7.0±0.89ms bench_diff_lines/unchanged/1k 1.00 422.0±16.68µs 1.28 540.7±13.96µs ``` |
||
---|---|---|
.. | ||
benches | ||
gen-protos | ||
proc-macros | ||
src | ||
tests | ||
testutils | ||
Cargo.toml | ||
LICENSE |