We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79b0e4d commit 88262f4Copy full SHA for 88262f4
src/main/go/AlexanderYastrebov/calc.go
@@ -132,8 +132,9 @@ func process(data []byte) map[string]*measurement {
132
func processChunk(data []byte) map[string]*measurement {
133
// Use fixed size linear probe lookup table
134
const (
135
- // use power of 2 for fast modulo calculation
136
- entriesSize = 1 << 12
+ // use power of 2 for fast modulo calculation,
+ // should be larger than max number of keys which is 10_000
137
+ entriesSize = 1 << 14
138
139
// use FNV-1a hash
140
fnv1aOffset64 = 14695981039346656037
0 commit comments