This commit is contained in:
bluepython508 committed 2026-10-22 12:27:19 +01:00
1 parent 3530afb854
commit 6903fcff27
2146 files changed
+112256 -190703

No files matched your search

+2 -2
View File
@@ -56,7 +56,7 @@ func makeString(c *stringCache, b []byte) string {
// hash64 returns the hash of two uint32s as a single uint32.
func hash64(lo, hi uint32) uint32 {
// If avalanche=true, this is identical to XXH32 hash on a 8B string:
// If avalanche=true, this is identical to XXH32 hash on an 8B string:
// var b [8]byte
// binary.LittleEndian.PutUint32(b[:4], lo)
// binary.LittleEndian.PutUint32(b[4:], hi)
@@ -75,7 +75,7 @@ func hash64(lo, hi uint32) uint32 {
h = bits.RotateLeft32(h, 17) * prime4
// Skip final mix (avalanche) step of XXH32 for performance reasons.
// Empirical testing shows that the improvements in unbiased distribution
// does not outweigh the extra cost in computational complexity.
// do not outweigh the extra cost in computational complexity.
const avalanche = false
if avalanche {
h ^= h >> 15