bits-and-blooms / bloom

Go package implementing Bloom filters, used by Milvus and Beego.
BSD 2-Clause "Simplified" License
2.44k stars 232 forks source link

Used a []uint as buffer to reduce memallocs. #11

Closed eliothedeman closed 10 years ago

eliothedeman commented 10 years ago

Because this is a performance critical part of an application I am writing, I figured I would pull request my optimizations.

I used a []uint buffer that is stored in the filter that way one doesn't have to be created for every request.