python bit array (performant)

前端 未结 3 2001
天涯浪人
天涯浪人 2020-12-31 13:49

I\'m designing a bloom filter and I\'m wondering what the most performant bit array implementation is in Python.

The nice thing about Python is that it can handle ar

3条回答
  •  醉酒成梦
    2020-12-31 14:10

    Perhaps check this out. It's pure python, and uses an array of int's: http://stromberg.dnsalias.org/svn/bits/trunk/

    Also, there are already several Python bloom filters. Check Pypi: https://pypi.python.org/pypi?%3Aaction=search&term=bloom+filter&submit=search

    HTH

提交回复
热议问题