Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Expected speed of retrieve function (nstore retrieve)

by Eliya (Vicar)
on May 16, 2012 at 11:22 UTC ( #970812=note: print w/ replies, xml ) Need Help??

in reply to Expected speed of retrieve function (nstore retrieve)

perl -e'$x[$_]=42 for 1..40_000_000; <>'
already needs around 1.5GB memory on my machine, and
perl -e'$x[$_]="foo" for 1..40_000_000; <>'

takes 3.3GB (checked with top).

So depending on what exactly you have in your array, and whether the process of retrieving involves making another copy of the data on the stack (not that unlikely, though I haven't checked), and what else you have running on your machine, you might well be running out of physical memory...

Comment on Re: Expected speed of retrieve function (nstore retrieve)
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2015-11-28 21:09 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (745 votes), past polls