Java: fast disk-based hash set
问题 I need to store a big hash set, able to contain up to approx 200 millions 40 bit values. Storing it as 200 millions 64 bit value would be acceptable (despite the 200 millions * 16 bits loss). The requirements are: tiny memory footprint (disk space ain't an issue, memory is) fast contains(long l) and add(long l) methods (much faster than SQL) embedded free and without nasty licensing (no Berkeley DB). LGPL fine. no false positive and no false negative, so things like disk-based Bloom Filters