Hi
I don't know Bloom::Filter.
Anyway if you have a real huge file there are some principles to follow.
if possible: use a DB
read the file only once
keep memory allocation small
There was a somewhat similar question a couple of days ago here Parsing Huge File
As mentionned in above node you might consider using some sort of a "state engine".