Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2017-10-24 08:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (286 votes). Check out past polls.

    Notices?