Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: speeding up a hash lookup

by jeroenes (Priest)
on Mar 27, 2001 at 21:13 UTC ( [id://67539]=note: print w/replies, xml ) Need Help??


in reply to speeding up a hash lookup

Well, it depends a little on how many keys you have, but I have had good experiences with BerkeleyDB {1}. For 2k keys, I experienced a 40 times increase in speed (for the look-up, didn't test the insert) with the Berkeley BTree hash in comparison to perl's hash lookup.

Hope this helps,

Jeroen
"We are not alone"(FZ)
{1} I have plugged this one quite often the last few months, but it is really a great tool. You can read about my problems at the time here.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://67539]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-24 12:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found