by haxen · 2y ago · 0 comments
To be fair, I didn't try out the hashbrown API. Maybe that, together with FxHash, would have been enough for the official dataset with 97% of keys < 16 bytes. But, I was optimizing for the "10k" dataset as well, with a lot of longer keys, and hashing just the first 8 bytes was the winning idea.
That's just a custom hash function, though; couldn't you do that with the standard std::collections::HashMap?