perf(gix-hash): upgrade sha1dc to 0.1.2 - #3012
Merged
Merged
Conversation
sha1dc 0.1.2 speeds up the collision check: recompression now uses the SHA-1 hardware instructions where available, and the filter for known disturbance vectors got cheaper. The minimum version is raised so dependents of `gix-hash` pick it up too. Performance: On an Apple M4 (4P/6E), against a bare clone of `git/git`: 421,363 objects, 305 MiB pack. Built from the tree of GitoxideLabs#3008 with the `max-pure` feature set and one target directory, with only the SHA-1 backend toggled; fastest of 5 rounds, rotating between builds each round. | operation | `sha1-checked` | `sha1dc` 0.1.1 | `sha1dc` 0.1.2 | vs 0.1.1 | |---|---:|---:|---:|---:| | `gix free pack verify` (1 thread) | 12.85s | 6.11s | 5.65s | **1.08x** | | `gix free pack index create` (1 thread) | 14.69s | 7.77s | 7.30s | **1.06x** | | `gix free pack verify` (all cores) | 2.28s | 1.06s | 1.03s | 1.03x | | `gix free pack index create` (all cores) | 4.28s | 2.80s | 2.69s | 1.04x | The all-cores runs were noisy on this machine, and their medians are on par between 0.1.1 and 0.1.2; the single-threaded gains are consistent across rounds. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sebastian Thiel (Byron)
approved these changes
Sep 23, 2026
Sebastian Thiel (Byron)
left a comment
Member
There was a problem hiding this comment.
Is it Christmas already?
Thanks so much!
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sha1dc 0.1.2 speeds up the collision check: recompression now uses the SHA-1 hardware instructions where available, and the filter for known disturbance vectors got cheaper. The minimum version is raised so dependents of
gix-hashpick it up too.Performance: On an Apple M4 (4P/6E), against a bare clone of
git/git: 421,363 objects, 305 MiB pack. Built from the tree of #3008 with themax-purefeature set and one target directory, with only the SHA-1 backend toggled; fastest of 5 rounds, rotating between builds each round.sha1-checkedsha1dc0.1.1sha1dc0.1.2gix free pack verify(1 thread)gix free pack index create(1 thread)gix free pack verify(all cores)gix free pack index create(all cores)The all-cores runs were noisy on this machine, and their medians are on par between 0.1.1 and 0.1.2; the single-threaded gains are consistent across rounds.