Week of 06/21/2009 - 02:00 to 06/28/2009 - 01:59

Storable excessive memory usage?

Before I submit a bug report , has anyone observed the memory usage pattern of Storable?

What Happens?

First I create a hash with 30 megs of memory:

my $s   = 'x' x 1000000;
my %res = map { $_ => $s } 1..30;

having afterwards a process (virtual) size of ~50 MB.

Then I use Storable to freeze that:

use Storable qw(freeze);
warn "size: ".length (freeze (\%res));

Even though

Posted In