Closed shrinandj closed 10 years ago
Hi thanks a lot, this will be fixed in our next release scheduled for next week.
Oops, sorry I was mistaken - unfortunately neither the Java BitSet nor Redis do support bitsets larger than 2^32 bits: http://docs.oracle.com/javase/8/docs/api/java/util/BitSet.html http://redis.io/commands/setbit
So I guess we are bound to Bloom filters no larger than 512MB.
The current implementation of optimalM(double n, double p) returns an int. This limits the largest bit set that can be used when creating a bloom filter.
E.g. I tried to create a bloomFilter with n = 100M but that crashed because the # of bits required to support that do not fit into an int.