3 ms·
> but for 8 byte inputs python's random hash is faster > than siphash24. For reference, note that Rust recently switched its default hash function from SipH
by kibwen 10y ago
> but for 8 byte inputs python's random hash is faster
> than siphash24.
For reference, note that Rust recently switched its default hash function from SipHash 2-4 to SipHash 1-3, which should lead to improved performance while retaining the usual flood-resistant properties (at least, that's what the algorithm's creator advised us to do :P ).
- aidenn0 10y agoAlso python adopted siphash in 3.4, due to security concerns around its hash function (see PEP-456).