Skip to content

Commit

Permalink
cargo: enable zlib-ng and fast sha1 in gix
Browse files Browse the repository at this point in the history
I noticed miniz_oxide appears in perf samples. While miniz_oxide is safer, I
think zlib-ng is pretty reliable.

https://docs.rs/gix/latest/gix/#performance

```
% hyperfine --sort command --warmup 3 --runs 10 -L bin jj-0,jj-1 \
  'target/release-with-debug/{bin} --ignore-working-copy log README.md'
Benchmark 1: target/release-with-debug/jj-0 ..
  Time (mean ± σ):     256.6 ms ±   4.3 ms    [User: 214.1 ms, System: 38.6 ms]
  Range (min … max):   245.4 ms … 261.2 ms    10 runs

Benchmark 2: target/release-with-debug/jj-1 ..
  Time (mean ± σ):     223.0 ms ±   4.2 ms    [User: 174.7 ms, System: 44.4 ms]
  Range (min … max):   212.4 ms … 225.8 ms    10 runs
```
  • Loading branch information
yuja committed Nov 20, 2024
1 parent c0a9e20 commit 18d54a2
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
42 changes: 42 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ gix = { version = "0.67.0", default-features = false, features = [
"attributes",
"blob-diff",
"index",
"max-performance-safe",
"max-performance",
] }
glob = "0.3.1"
hashbrown = { version = "0.15.1", default-features = false, features = ["inline-more"] }
Expand Down

0 comments on commit 18d54a2

Please sign in to comment.