Bloom Filters and HyperLogLog in Go: Trading a Little Error for a Lot of Memory
A million IDs take 8 MB to store exactly. Asking whether you have seen one takes 1.2 MB if you accept a false yes about once in 120. Counting how many distinct IDs there are takes 12 KB if you accept under 1% error. We derive both trade-offs, build the structures in Go, and check each formula against measurements.
#Bloom-Filter #HyperLogLog #Go #Algorithms #Distributed-Systems
December 5, 2026