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 |