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

Re^5: Finding memory usage of perl structure efficiently

by BrowserUk (Patriarch)
on Jun 28, 2010 at 04:47 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-03-28 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found