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

Re: Finding memory usage of perl structure efficiently

by zwon (Abbot)
on Jun 26, 2010 at 19:07 UTC ( #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
Node Status?
node history
Node Type: note [id://846710]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2018-08-17 12:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (178 votes). Check out past polls.

    Notices?