Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Set correct count after unioning two bloom filters #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

grafke
Copy link

@grafke grafke commented Dec 7, 2016

After unioning two bloom filters, the count of the resulting bloom filter was set to 0. I updated the union method to update the self.count of the result as well.

@jaybaird
Copy link
Owner

jaybaird commented Dec 9, 2016

This sets the correct count for union, but will need to also have it set for intersection in this case. I can take a look at adding this soon.

Another possibility is removing the count entirely and moving to a more pressure based system for growing the filter that isn't exposed to the API. Let me think about this some more.

@grafke
Copy link
Author

grafke commented Dec 12, 2016

I added the correct count in the intersection method as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants