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:
Clinton Pierce
Date:
January 29, 2008 06:39
Subject:
Re: [perl #50352] Perl 5.10 Storable extremely slow for large trees of data
Message ID:
9e01efbb0801290314n1565986aj796cd120f0fc1e21@mail.gmail.com
I commented to my own bug report, and a sample structure is attached.

Building Storable 2.18 for 5.6 is going to be really, really tough these
days on my Windows machine which is where I found the problem. If I had a
time machine...

On Jan 29, 2008 4:53 AM, Nicholas Clark via RT <perlbug-followup@perl.org>
wrote:

> 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