How can I load a Bloom filter from a file in C++ and ensure identical hashing to Python?
12:27 07 Nov 2025

I have a data pipeline where Python builds a Bloom filter to track whether a composite time-series key (entity|metric) has been seen

The Python job:

  1. Computes Bloom filter indices using a custom hash function

  2. Uses double hashing (k)

  3. Stores the bit-array into a file with metadata: the hash function and k.

Later, a C++ job must:

  1. Open the same file

  2. Reconstruct a Bloom filter from that bit array, with the metadata.

    Any C++ library recommendations for this?

python c++ bloom-filter