#956·xxHash

Could you make a tiny version of the hash function?

Author: mofosyneCreated Jul 7, 2024Updated Sep 17, 2026
Labelsquestion

Basically according to author of SMHasher he said that https://github.com/tidwall/th64 version is similar to hashes like yours but compressed to a few lines (Source: https://news.ycombinator.com/item?id=40877460) .

I see nothing wrong with it if it passes SMHasher3, but it's also not radically different than other hashes - it's just smooshed down into four lines.

Got me thinking, how compact could you compress your hash function? Maybe you could place it in your readme for those who want to just copy and paste the hash function with minimum dependencies and don't care about speed.

And if so, how would it compare against th64