Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Data-Dumper CPAN distribution.

Report information
The Basics
Id: 11630
Status: new
Priority: 0/
Queue: Data-Dumper

People
Owner: Nobody in particular
Requestors: fergal [...] esatclear.ie
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.121
Fixed in: (no value)



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.
Download diff
application/octet-stream 519b

Message body not shown because it is not plain text.