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

Storable::nstore_fd + '>:raw' pragma

Thread Next
From:
David Williams
Date:
January 27, 2009 05:23
Subject:
Storable::nstore_fd + '>:raw' pragma
Message ID:
AF57B842202BE341BA1C6E653F6CEB3341AF23@be45.exg3.exghost.com
Dear Porters

 

You might like to know about one problem I had with Storable and file
opening pragmas.  As you know, Storable can save to a file with 

 

nstore($filename)

 

or via 

 

nstore_fd( $OPEN_HANDLE )

 

 

Now, if the handle $OPEN_HANDLE is opened with the '>:raw' pragma,
instead of the usual '>' open + binmoding, then Storable takes over 20
times as long to store to the file than with nstore. Im talking 1 second
to 2 minutes kind of slowdown.  insane!  It seems like Storable is
thrashing on the newer io layer pragmas.  (at least on 64-bit ubuntu
server and perl 5.8.8);

 

 

 

best regards

dave

 


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