I noticed the com.github.jbapple.libfilter.TaffyBlockFilter has a high fpp (100% at some point). Likely there is a simple bug:
private void MakeMask(long hash, int[] result) {
// The loops are done individually for easier auto-vectorization by the JIT
for (int i = 0; i < 8; ++i) {
result[0] = (int) hash * INTERNAL_HASH_SEEDS[i]; <== BUG HERE
}
for (int i = 0; i < 8; ++i) {
result[i] = result[i] >>> (32 - 5);
}
for (int i = 0; i < 8; ++i) {
result[i] = 1 << result[i];
}
}
To me it looks like it should be result[i] instead of result[0].
I noticed the com.github.jbapple.libfilter.TaffyBlockFilter has a high fpp (100% at some point). Likely there is a simple bug:
To me it looks like it should be
result[i]
instead ofresult[0]
.