Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: "Just use a hash": An overworked mantra?

by Tanktalus (Canon)
on Nov 17, 2011 at 21:06 UTC ( #938683=note: print w/ replies, xml ) Need Help??


in reply to Re: "Just use a hash": An overworked mantra?
in thread "Just use a hash": An overworked mantra?

Obviously, “if you’ve got the RAM, flaunt it.”

Well, if you say so... :-D

I found it interesting, so I tried some of BrowserUk's test scripts. I populated the rands.dat file - 0m48.948s. Then I loaded it into a hash - 0m37.042s. The array was significantly faster - 0m28.708s. Loading the data into an array took a fair bit of RAM, but since I am only using roughly 7GB of 12GB, I didn't encounter any swapping - 0m59.864s. Going on the first numbers, I must have something faster in my system already. However, not ten times faster. If you don't have the RAM, you may need to get it. :-)


Comment on Re^2: "Just use a hash": An overworked mantra?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2015-07-29 00:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls