One Hash Bloom Filters

(calabro.io)

57 points | by jcalabro 5 hours ago

4 comments

  • aappleby 1 hour ago
    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 2 hours ago
    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).
  • gwittel 2 hours ago
    I hadn’t seen that one hash paper before. This is a really cool optimization over Miztenmacher. Do you have benchmark numbers with different input sizes you can share?

    I’ll have to read the paper and code more, but it seems like this would be amenable to supporting filter merges as well (as long as the new size doesn’t exceed the filters’ capacity).

  • hei-lima 1 hour ago
    Great post!