develooper Front page | perl.perl5.porters | Postings from May 2004

RE: Storable doubles memory consumption when storing (considerations about Data::Dumper)

Thread Next
From:
Orton, Yves
Date:
May 18, 2004 04:03
Subject:
RE: Storable doubles memory consumption when storing (considerations about Data::Dumper)
Message ID:
E471ED2DFD9353458E8B75FD6D6B03071ADD2B@defra1ex4.wcom.de
> compromise: only hash things with a reference count of 2+
>             (this assumes that no-one will create second reference to
> 	     anything mid store, but (I believe) will mean that 
> all complex
> 	     self-referential structures will still store perfectly)

FWIW: 

I use this technique in Data::Dump::Streamer and it should be added to
Data::Dumper as well. There it would reduce the overall memory profile of
DD, and would allow the detection of when DD incorrectly dumps a multiply
referenced element of a composite structure or other aliased data element.

Yves



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About