Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Finding memory usage of perl structure efficiently

by zwon (Abbot)
on Jun 26, 2010 at 19:07 UTC ( [id://846710]=note: print w/replies, xml ) Need Help??


in reply to Finding memory usage of perl structure efficiently

You can rewrite _storable_size as follows:

sub _storable_size { length Storable::freeze $_[0]; }

Replies are listed 'Best First'.
Re^2: Finding memory usage of perl structure efficiently
by dpavlin (Friar) on Jun 27, 2010 at 11:14 UTC
    This is simplier, but it would take additional memory to freeze my structure (which is ~120Mb or so)

    2share!2flame...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-04-18 03:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found