Open
Description
Profiling a bit this package, I found that about 75% of the time spend for Insert
is calling rand.Intn(bucketSize)
. This is with an almost empty filter so I expect it's getting worse as the it fill.
I expect the requirement for randomness here is fairly low (it's just drawing a number between 0 and 3 to not do the same thing each time), there should be ways to do that much faster, and especially without mutex locking as rand.Intn
has.
Metadata
Metadata
Assignees
Labels
No labels