Live data from Hacker News

SeaHash: A fast, portable hash function in Rust

docs.rs

1–10 of 116 posts

Re: SeaHash: A fast, portable hash function in Rust

#4
post #2

Great. But keep in mind that this is not a keyed hash function.

This is mentioned in the documentation:

"Warning!

This is not a cryptographic function, and it certainly should not be used as one. If you want a good cryptograhic hash function, you should use SHA-3 (Keccak) or BLAKE2."

Re: SeaHash: A fast, portable hash function in Rust

#7

Great to see another piece of code written in Rust. That said, how do you make claims of something being blazingly fast without any comparisons to implementations in other languages such as C or C++?

The claim is that it is a blazingly fast hash function compared with other hash functions, and it is also written in Rust. Rust is an enabling technology, but not able to be dramatically faster than a comparable C/C++ implementation, as a general rule.

Re: SeaHash: A fast, portable hash function in Rust

#8
post #5

I was trying to figure out how this is so much faster than FNV https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo... Is it only because of the parallelism? Or are the operations really that much cheaper somehow?

Presumably because SeaHash operates on 8-byte blocks while FNV acts on single bytes.
Post reply on HN