Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

But there is a heavy multiplier on that O(1) with the default hasher in Rust. My benchmarking has shown that FNVHasher gave me a 24% decrease in execution time over the default hasher. My use case had a high likelihood of a poll on the hash indicating that there was no match, and I got a near doubling of speed just by setting the initial capacity sufficiently large.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: