Skip to content

SynBloomFilter large volumes #450

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

Closed
Uefi1 opened this issue Jan 20, 2024 · 1 comment
Closed

SynBloomFilter large volumes #450

Uefi1 opened this issue Jan 20, 2024 · 1 comment

Comments

@Uefi1
Copy link

Uefi1 commented Jan 20, 2024

Hello, can I make a bloomfilter for any huge amount of data?

var
BloomFilter:TSynBloomFilter;

procedure Duplicates;
var
I:integer;
s:string;
begin 
for i:=0 to maxint do begin
s:=inttostr(Random(999999)+99999));
if not StrDictionary.MayExist(s) then
StrDictionary.Insert(s);
end;
end;


begin
Randomize;
BloomFilter:=TSynBloomFilter.Create(10000000);
Duplicates;
end;

It just seems to me that I'm doing something wrong: Bloomfilter does a very good job with small data, but outright lies with huge data

@synopse
Copy link
Owner

synopse commented Feb 9, 2024

I can't understand your exact concern.

Please use the forum to discuss this.

@synopse synopse closed this as completed Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants