in reply to Fast string hash in portable perl?

There's the B::hash() routine which returns a string representation of the hexadecimal representation of the number generated by perl's hashing function. perldoc B

Is that good enough?

Replies are listed 'Best First'.
Re: Re: Fast string hash in portable perl?
by waswas-fng (Curate) on Dec 19, 2003 at 19:48 UTC
    I think this will be the fastest just because it is actually using compiled code in the perl bin to perform the hash. The only issue is that perls hash keygen does allow collisions and they are going to be much more frequent than lets say an md5 generator. it all depends what you are using it for.


    -Waswas
Re: Re: Fast string hash in portable perl?
by Anonymous Monk on Dec 19, 2003 at 20:41 UTC
    This is exactly what i was looking for. I need to spend more time in the perldoc B. :-) I'll futz with it a bit to make sure it has few enough collisions, but I expect it will do nicely.

    Thank you kindly!

    j