-
Notifications
You must be signed in to change notification settings - Fork 11
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 'cfAddNX' so many misjudgement? #50
Labels
Comments
Hi @scallionshen, BTW, why won't you use our Bloom Filter since you are not looking to delete values? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am doing some test of Cuckoo Filter with data set of range(1, 1e8)
redis_cuckoo.cfCreate(CK_FID, 100000000, bucket_size=10, ) cnt = 0 duplicate_cnt = 0 for i in range(100000000): exist = not bool(redis_cuckoo.cfAddNX(CK_FID, i)) cnt += 1 if cnt % 10000 == 0: print(cnt, duplicate_cnt) if exist: duplicate_cnt += 1
After nearly 1000k elements was added , error count was about ~22k, which make no sense for me .
can anybody give me some guidance. TYVM!
The text was updated successfully, but these errors were encountered: