ayazhafiz / xorf

Xor filters - efficient probabilistic hashsets. Faster and smaller than bloom and cuckoo filters.
MIT License
129 stars 27 forks source link

use Borrow to allow more types in .contains() calls #83

Open djugei opened 10 months ago

djugei commented 10 months ago

closes #82 some thougts: this is mainly useful for the hash_proxy so maybe it should just be implemented on that type specifically in addition to the generic Filter::contains()?

the code is very repetative, especially within the classes (x8 x16 x32) but also between. Maybe using generics or one big macro would be an idea?