Subject: | Data::Dumper using huge amounts of memory |
#! perl -slw
use strict;
use Data::Dumper;
$Data::Dumper::Deepcopy = 0;
my %h;
$h{ $_ } = [ 1 .. 10 ] for 'aaaa' .. 'zzzz';
print Dumper \%h;
eats gigs of memory, I have no idea how long it takes to finish, if it all. It's because DD catalogs every scalar even when deepcopy is off. Attached is a patch to stop cataloging when Deepcopy is off. I don't think there's another reason to catalog scalars but I could be wrong.
Message body not shown because it is not plain text.