bits-and-blooms / bloom

Go package implementing Bloom filters, used by Milvus and Beego.
BSD 2-Clause "Simplified" License
2.44k stars 232 forks source link

Allow direct read/write to/from io streams #9

Closed thepaul closed 10 years ago

thepaul commented 10 years ago

We're working with some rather large bloom filters. They're large enough that we may not be easily able to hold an extra copy or two in memory for the conversion-to-JSON process.

Instead, we just want to be able to serialize a bloom filter straight to a file stream. This required a change to the bitset package as well; I'm submitting a separate pull request for that part.

Hopefully someone else may find this useful.

willf commented 10 years ago

Thanks.