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

Re^5: Finding memory usage of perl structure efficiently

by BrowserUk (Patriarch)
on Jun 28, 2010 at 04:47 UTC ( #846817=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    0] Perl> @a = map [], 1 .. 1e6;;
    0] Perl> ## At this point, the process is using 195MB RAM.;;
    0] Perl> $s = $#{ $_ } for @a;;
    0] Perl> ## At this point, the process is using 395MB RAM.;;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2022-07-03 23:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?