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...