Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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??


in reply to Re: Re: A memory efficient hash, trading off speed - does it already exist?
in thread A memory efficient hash, trading off speed - does it already exist?

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.

  • Comment on Re: Re: Re: A memory efficient hash, trading off speed - does it already exist?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (None)
    As of 2024-04-25 01:31 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found