Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: What's wrong with Storable

by eserte (Deacon)
on Apr 16, 2004 at 23:50 UTC ( #345909=note: print w/replies, xml ) Need Help??

in reply to What's wrong with Storable
in thread Storable

Restoring it, takes an average of 3,8 times more memory than disk space => ca. 1,2GB!
This is not surprising --- Storable may store the data more space-efficient than it is in the RAM --- think of malloc overhead, necessary struct alignment, and the size of a SV*.

Saving is weird, after all the 330MB have been saved, store takes another 2200 seconds of 100% CPU time on a P3 1,26GHz even after the complete file is already on disk.
Maybe it's the global destruction which is causing the slowness. This may be due to an inefficient malloc. For example, it was reported that on FreeBSD, perl with the system malloc is very slow on deleting a large hash. Similar is true for certain Linux' malloc versions.

Replies are listed 'Best First'.
Re: Re: What's wrong with Storable
by PetaMem (Priest) on Jun 01, 2004 at 14:42 UTC
    Actually it is what I would call a design flaw of the Storable module, this was discussed (and resolved) in detail at the perl5 porters list. Expect a patch to storable RSN.

        All Perl:   MT, NLP, NLU

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2022-10-06 06:50 GMT
Find Nodes?
    Voting Booth?
    My preferred way to holiday/vacation is:

    Results (26 votes). Check out past polls.