3 ms·
We ended up with fasthash64 and lookup3 by looking for a fast hash that is easy to port to the restricted subset of C supported by eBPF with minimal changes. ht
by lmb 4y ago
We ended up with fasthash64 and lookup3 by looking for a fast hash that is easy to port to the restricted subset of C supported by eBPF with minimal changes. https://github.com/rurban/smhasher https://github.com/rurban/smhasher is a great resource for that.
I would probably choose different, more robust hash functions if I was targeting regular C.