in reply to Fast string hash in portable perl?
I believe if you're hell-bent on pure Perl, there is no faster thing than the CRC32 for "sufficiently good" hashing. Enough work has gone into CRC32 to make it fast, as it has been in use for a long time. Oh - there even is a module for it - CRC32
But why not simply use Digest::MD5 ? I think it's core nowadays, and there even is a (slow) pure Perl version available ...
Update:Added link to the CRC32 module
perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Fast string hash in portable perl?
by BrowserUk (Patriarch) on Dec 19, 2003 at 19:45 UTC | |
by flyingmoose (Priest) on Dec 19, 2003 at 20:56 UTC | |
by waswas-fng (Curate) on Dec 19, 2003 at 22:15 UTC | |
|
Re: Re: Fast string hash in portable perl?
by dragonchild (Archbishop) on Dec 19, 2003 at 19:55 UTC | |
by Anonymous Monk on Dec 19, 2003 at 22:44 UTC | |
by dragonchild (Archbishop) on Dec 20, 2003 at 02:31 UTC |