laziness, impatience, and hubris | |
PerlMonks |
Re: Hashing urls with Adler32by moritz (Cardinal) |
on May 31, 2007 at 14:39 UTC ( [id://618498]=note: print w/replies, xml ) | Need Help?? |
The more URLs you hash, the higher the probability for a collision is.
This is true for all hashing algorithm. I personally would take the (relative small) risk for less than 10^4 hashes, with more hashes I'd rely on something else or implement a scheme that makes hash collisions non-fatal if I had to use hashes.
In Section
Seekers of Perl Wisdom
|
|