Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

(Solution) Re: Data::Dumper Limitations

by jplindstrom (Monsignor)
on Oct 31, 2002 at 23:47 UTC ( #209592=note: print w/replies, xml ) Need Help??

in reply to Data::Dumper Limitations

I have run into this problem. When the data structure went above a certain size, the memory consumption went through the roof.

The solution/workaround is this:

local $Data::Dumper::Useqq = 1;

This will (among other things, perldoc it) make it use the pure Perl implementation which doesn't seem to have this problem.

Ok, it's slower for small data structures (so who cares?), but it works for large ones.


Replies are listed 'Best First'.
Re: (Solution) Re: Data::Dumper Limitations
by demerphq (Chancellor) on Nov 01, 2002 at 13:14 UTC
    My apologies. I wrote my reply without reading the others.

    Funny how we said almost exaclty the same thing. Only difference being that I dont recommend localizing the value. I would rather it works all the time than works fast most of the time. :-)

    --- demerphq
    my friends call me, usually because I'm late....

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://209592]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2021-02-27 18:33 GMT
Find Nodes?
    Voting Booth?

    No recent polls found