axiak / pybloomfiltermmap

Fast Python Bloom Filter using Mmap
http://axiak.github.com/pybloomfiltermmap/
MIT License
741 stars 137 forks source link

Read-only BFs and XXHash #83

Open klaussfreire opened 7 years ago

klaussfreire commented 7 years ago

Sorry about the combo PR, but that's how we have it in our fork.

This PR adds 2 things:

  1. Switch to XXHash as hash implementation. It's considerably faster than all the others, and has good enough quality for most applications.

  2. Add ability to open files in read-only mode. Useful to share a big read-only BF across processes while preventing modifications, or to open files you have no permission to write.