develooper Front page | perl.perl5.porters | Postings from January 2008

Re: [perl #50352] Perl 5.10 Storable extremely slow for large trees of data

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
January 29, 2008 01:52
Subject:
Re: [perl #50352] Perl 5.10 Storable extremely slow for large trees of data
Message ID:
20080129095234.GO38653@plum.flirble.org
On Mon, Jan 28, 2008 at 11:26:34AM -0800, Clinton A. Pierce wrote:

> To duplicate a large expat-parsed XML structure (with refs of refs of refs),
> 
> I'm doing the following:
> 
> 
> my $temp = Storable::freeze $originalXml;
> my $copyXml = Storable::thaw($temp);
> 
> 
> And by "large" I mean about 8MB when dumped with Data::Dumper.  Under Perl
> 5.6
> the "freeze" takes fractions of a second.  Under Perl 5.10 it takes many
> seconds
> (between 5-8 seconds).

Do you have a sample data structure you can attach?
Do you have results for perl 5.8.8?

5.10 comes with Storable 2.18. If you download this from CPAN and build it
for 5.6, is it slow?

Nicholas Clark

Thread Previous | 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