Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^3: Why it takes so much time here?

by Eliya (Vicar)
on Dec 28, 2011 at 03:43 UTC ( #945276=note: print w/replies, xml ) Need Help??

in reply to Re^2: Why it takes so much time here?
in thread Why it takes so much time here?

My system has 7GB ... (6GB free)

On my system, creating a list of 10_000_000 scalars on Perl's stack already takes roughly 700MB. So, as you have 10 times as many, 7GB is pretty close...

Try this

$ perl -MList::MoreUtils -e'any {<>} 1..10_000_000'

and check its memory usage with top or ps (abort with ^C).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://945276]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2018-01-20 12:14 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (226 votes). Check out past polls.