Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Space Efficiency of Hashes

by tlm (Prior)
on Mar 16, 2005 at 00:19 UTC ( [id://439825]=note: print w/replies, xml ) Need Help??

in reply to Space Efficiency of Hashes

I don't have a ready answer, but if I were confronting the same question, I'd run a smaller mock-up (with 1000 keys, say), and figure out a multiplier based on that.

Actually, more truthfully/realistically, I'd probably just go with the naive approach, and if I discovered that I'm in deep doodoo (in the form of a script that slows down to a crawl), I'd think harder about it.

With something in the range you're dealing with, I've often found myself needing to use tied hashes, just to keep Perl from spending 95% of the time swapping.

the lowliest monk

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-22 03:17 GMT
Find Nodes?
    Voting Booth?

    No recent polls found