benchmarking Perl client hash functions

Larry Leszczynski larryl@emailplus.org
Wed, 21 Jul 2004 14:20:37 -0400 (Eastern Daylight Time)


On Wed, 21 Jul 2004, Brad Fitzpatrick wrote:

> In conclusion, I see no reason to stay with ord.  The perl default as of
> the next release (if I hear no loud and valid complaints) will be (CRC32
> >> 16) & 0x7ff.

I think that's a good move, just make sure to use String::CRC32::crc32()
(fast) and not Digest::CRC::crc32() (slow).


> I don't know why just bits 16-30 are used, but since it looks fine, I'll
> assume whoever proposed that first knows why.  (I'm guessing those bits
> are the most random for that function....)

CCing Troy on this message to see if he has any info.


Larry Leszczynski