benchmarking Perl client hash functions

Anatoly Vorobey mellon@pobox.com
Mon, 19 Jul 2004 22:14:10 +0300


On Mon, Jul 19, 2004 at 03:07:36PM -0400, Larry Leszczynski wrote:
> Do all the clients currently support (or could they support) the hashfunc
> from the Perl client?  i.e.:
>     foreach (split //, shift) {
>         $hash = $hash*33 + ord($_);
>     }

If crc32 is better _and_ faster than the current Perl hashfunc, let's 
throw the current Perl hashfunc away altogether. There's no good reason to 
enshrine it, it was just a quick hack.

-- 
avva
"There's nothing simply good, nor ill alone" -- John Donne