bloom-rs icon indicating copy to clipboard operation
bloom-rs copied to clipboard

Serialize / deserialize?

Open dpc opened this issue 8 years ago • 3 comments

How would I go about saving bloom filter to a disk?

dpc avatar May 02 '17 22:05 dpc

also looking for how to do this

awalias avatar Aug 21 '19 05:08 awalias

I came here to ask the same question. Subscribing for updates.

Update: Potential candidate https://github.com/dpbriggs/growable-bloom-filters

dilawar avatar May 19 '24 05:05 dilawar

I used to maintain BitVec. It supports serialization with serde under a feature flag serde_std, so you may fork bloom and slap a serialize / deserialize with serde, plus a feature argument to bit-vec. Not sure about RandomState, you might need to implement a way to extract its state and de/serialize it.

Edit: https://github.com/contain-rs/bit-vec/blob/d3585be9e5057eee56f81fe3d5d958669bd7db74/Cargo.toml#L23

pczarn avatar May 21 '24 14:05 pczarn