2 ms·
FNV is slow because it only goes one byte at a time. An easy improvement for basically no extra complexity is the FxHash, which is popular in Rust for simple no
by pcwalton 4y ago
FNV is slow because it only goes one byte at a time. An easy improvement for basically no extra complexity is the FxHash, which is popular in Rust for simple non-secure workloads: https://nnethercote.github.io/2021/12/08/a-brutally-effective-hash-function-in-rust.html https://nnethercote.github.io/2021/12/08/a-brutally-effectiv...
Obligatory disclaimer: Don't use any of this in cryptographic contexts.