Repository navigation
proto: hash with go-simd/crc64 - #8
Merged
Merged
Conversation
Fingerprint hashes whole media files (MiB scale). Same ECMA table, bit-identical output (the benchmark asserts equality), 4.6x faster from 1 MiB up on Zen 4. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Switches
proto.Fingerprint(proto/proto.go:176, CRC-64/ECMA over a whole file, so MiB-scale input) fromhash/crc64togithub.com/go-simd/crc64v0.3.0, a drop-in with the sameTabletype and bit-identical output. The committed benchmarkproto/crc_bench_test.goasserts equal checksums at every size.Measured on fractal (Ryzen 9 7950X, Zen 4, linux/amd64), taskset one core, 6 interleaved rounds, 1-min load 0.6-1.2. Median ns/op and MB/s:
Up to 256 B it is a tie (within 5 %, below 100 ns, not a real worker size); from 1 KiB it is 1.6x to 4.6x faster. arm64 not measured (host load above 8).
🤖 Generated with Claude Code