-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bloom filters untested for large (500M) inputs #22
Comments
I found fpp gets bad for 100 million keys and larger. As far as I see, the solution for the C++ version was to use 128 bit multiplication, which isn't available in Java (at least, not fast). I found the following works for Java:
Is there anything wrong with the above? Before the change: size 2000000 After the change: Notice fpp for 200'000'000 is much better (0.008209775 instead of 0.008869465). Speed it not affected it seems. I can't test with >= 300 million keys. |
It looks good to me. |
So the change is committed, but there is no test case yet. It's a bit hard to write one, as running it would require a lot of memory, and it would be slow. It should be possible to write a test case with much less memory (by only remembering data of a subset of the array; a small window, and forget the rest). The test wouldn't use the real implementation. I'm not sure on how such a test could be made fast. |
It is likely that the Java Bloom filter implementation suffers from the same issue as the C++ implementation for large inputs FastFilter/fastfilter_cpp#8
The text was updated successfully, but these errors were encountered: