jaybaird/python-bloomfilter — pull request #17 by simon-weber (2014-11-01 15:48:16+00:00)
Title: return bit indices set during an add

My project involves multiple nodes maintaining and syncing up bloom filters. To do this efficiently, I need to know which indices get set during an add operation. This PR adds a method to do that.

This isn't quite ready to be merged. Here are some questions for you:
* would it slow things down to consume the hashes iterator before the loop so we can pre-allocate the indices list? I'd like to avoid dynamically expanding the indices list.
* what do you want the client interface for this to be? My first thought was that add_return_bits is a more general interface and that `add` should be calling it, but that would introduce a memory/gc perf regression for code not using the bit indices.