Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Storable::freeze performance problem

by Xaositect (Friar)
on Jun 24, 2005 at 16:58 UTC ( #469765=note: print w/replies, xml ) Need Help??

in reply to Storable::freeze performance problem

I'm afraid I can't really answer to the performance question, but on the off chance this is useful...

I ran into a situation a while back where I couldn't use Storable on a particular platform. I did some reasearch into other freeze/thaw methods, and ended up using Data::Dumper . Freeze by saving the Dumper output, and thaw by eval'ing it again. To my surprise, there are actually a number of useful configuration settings for Data::Dumper with this sort of freeze/thaw in mind. ($Data::Dumper::Freezer for example)

Obviously, data size can be an issue with this solution, so check out $Data::Dumper::Indent. Again, I can't speak to performance, but from the doc: "The Data::Dumper module is a dual implementation, with almost all functionality written in both pure Perl and also in XS ('C'). Since the XS version is much faster, it will always be used if possible."

Xaositect -

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://469765]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2020-10-29 05:17 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (269 votes). Check out past polls.