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

Storable::nstore_fd + '>:raw' pragma

Thread Next
David Williams
January 27, 2009 05:23
Storable::nstore_fd + '>:raw' pragma
Message ID:
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 




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



Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About