P is for Practical | |
PerlMonks |
Re: Re: Re: A memory efficient hash, trading off speed - does it already exist?by Tardis (Pilgrim) |
on Feb 04, 2003 at 23:34 UTC ( [id://232677]=note: print w/replies, xml ) | Need Help?? |
Have you actually tried tieing your hashes to a DBM file? You may find the speed hit is not anywhere near as bad as you think. I have DBM files with many millions of keys, and fetches are still lightning fast. Considering it's probably about 4 lines worth of code to try, give it a shot :-) I don't think it's even worth trying to draw conclusions about how fast a DBM file access will be by looking at the slowdown of a swapping process. Apples and Oranges.
In Section
Seekers of Perl Wisdom
|
|