P is for Practical | |
PerlMonks |
Re: speeding up a hash lookupby jeroenes (Priest) |
on Mar 27, 2001 at 21:13 UTC ( [id://67539]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|