HTTPS clone URL
Subversion checkout URL
...by initializing the bit-vector to all zeroes. fixes #46 Also round-down the hash count (with rationale included in a comment). The code was doubling the number of bits in the filter, but accuracy is reliably within 2x of target (per the updated tests) even without this. So I took that out. BloomFilter will now use less space and the number of bits should match what you'd get if you took all the Wikipedia article's equations and calculated it yourself. Removed num_slices, which I belatedly realized was for comparison against pybloom. I just fixed tests/comparisons/accuracytest.py to not need a num_slices property on the bloom filter object. Beefed up the accuracy test. It now checks both malloc and mmap BloomFilters for strings and integers. It also has non-asserting tests which print error rate as a function of elements inserted (purely for humans looking at test results). Made the simple tests prove all BloomFilter properties are preserved with file copying, and loading from base64.
|Failed to load latest commit information.|
|comparisons||Fix in-memory BloomFilter accuracy.|
|accuracytest.py||Fix in-memory BloomFilter accuracy.|