Bluesky's one-hash bloom filter slashes deploy times from 90 to 15 minutes
One Hash Bloom Filters

Jim Calabro explains how Bluesky's backend uses bloom filters to skip millions of database queries per second, then dives into a one-hash variant that splits the bit array into pairwise coprime partitions. His Go implementation, gloom, has run in production for nine months and powers the Jetstream sync service. Cache-line alignment, a single MUL instruction for block selection, and sharded atomic writes keep lookups to one cache miss.
A single deploy used to take 90 minutes to roll out fully because of this!
- aappleby
You don't actually have to do this - you can stick with a power of 2 sized table and just gently mix the hash value to get each additional bit index.
(source - I wrote MurmurHash/SMHasher and have used the above in my own bloom filters and cuckoo hash tables)
- FreakLegion
NB: You're trading non-negligible space efficiency here, which gets worse as you lower the false positive rate. Partitioning means uneven occupancy rates across partitions, and either you accept low occupancy (increased filter size overall) or you're pretty much guaranteed to have hot blocks (increased false positive rate for specific partitions).
- cperciva
While much cheaper than going to disk, computing k independent hashes per key is still a bit expensive for very high performance systems.
Depends how big the bloom filter is. Most hashes are big and their bits are independent.