Skip to content

Fix BloomFilter::Native#include? when multiple keys are passed#55

Open
rmm5t wants to merge 1 commit intoigrigorik:masterfrom
rmm5t:rmm/fix-include
Open

Fix BloomFilter::Native#include? when multiple keys are passed#55
rmm5t wants to merge 1 commit intoigrigorik:masterfrom
rmm5t:rmm/fix-include

Conversation

@rmm5t
Copy link
Copy Markdown

@rmm5t rmm5t commented Apr 4, 2026

It appears that the intended interface for BloomFilter::Native#include? is to accept multiple keys and check if all are included in the filter set.

However, CBloomFilter#include? short-circuits after the first key.

Closes #54

Note

I found this while forking this project into a smaller bloom_fit that is aimed at being just an in-memory Bloom filter with a small, Set-like API while using a better hash distribution for large sets. However, I want to make sure I'm backfilling any bugs or issues I find along the way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BloomFilter::Native#include? doesn't work when multiple keys are passed

1 participant