> The Murmur hash below is used in memcached and should yield less
> collisions.
Same patch attached in a non-retarded diff format, because I'm feeling
nice.
Regards,
--
Chris Lamb, UK ch...@chris-lamb.co.uk
GPG: 0x634F9A20
Thank you Chris, Max. I know the current hashing function is not
perfect, but I run different tests against key sin the form
"identifier<incremental number>" and surprisingly the djb hash
function was the one performing better. So I want to re-run this tests
after the Redis-1.0 release against some kind of real-world dataset in
order to reality-check if this is a real win.
Basically I want to switch hash function only if the evidence will
suggest it's worth it, and given that the hash function library is
able to count collisions it should be trivial to run the test, and
after the 1.0 stable release.
Cheers,
Salvatore
>
> Regards,
>
> --
> Chris Lamb, UK ch...@chris-lamb.co.uk
> GPG: 0x634F9A20
>
--
Salvatore 'antirez' Sanfilippo
http://invece.org
"Once you have something that grows faster than education grows,
you’re always going to get a pop culture.", Alan Kay