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

why not use uint8 on bloom bitset? #53

Closed HH-LFY closed 3 years ago

HH-LFY commented 4 years ago

the bitset is type BitSet struct { length uint set []uint64 } now. cause the bloomFilter used more memory

lemire commented 3 years ago

cause the bloomFilter used more memory

Please consider providing a pull request, together with both performance and memory usage benchmarks.