- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for crcHashMod (0.38 sec)
-
cmd/erasure-sets_test.go
{512}, {1024}, } for _, testCase := range cases { key := randString(testCase.key) b.Run("", func(b *testing.B) { b.SetBytes(1024) b.ReportAllocs() b.ResetTimer() for b.Loop() { crcHashMod(key, 16) } }) } } func BenchmarkSipHash(b *testing.B) { cases := []struct { key int }{ {16}, {64}, {128}, {256}, {512}, {1024}, }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 6.8K bytes - Viewed (0) -
cmd/erasure-sets.go
} func crcHashMod(key string, cardinality int) int { if cardinality <= 0 { return -1 } keyCrc := crc32.Checksum([]byte(key), crc32.IEEETable) return int(keyCrc % uint32(cardinality)) } func hashKey(algo string, key string, cardinality int, id [16]byte) int { switch algo { case formatErasureVersionV2DistributionAlgoV1: return crcHashMod(key, cardinality)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 37K bytes - Viewed (1)