-
Notifications
You must be signed in to change notification settings - Fork 108
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
Why force power of 2 for capacity? #40
Comments
I didn't read the code accurately, but this is probably to force the compiler to avoid using the slow Maybe @seiflotfy can expand on this. |
Seems plausible, but I would think the size of the filter is often more important. |
If the capacity is not the power of 2, then xor won't be involution. And as the candidate position is calcualted using |
Perhaps I am not seeing it in the paper, but why force the capacity up to the next power of 2? When rebuilding as in the scalable filter, this decreases the potential load factor.
The text was updated successfully, but these errors were encountered: