Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Tie data hash to DBM file leaving massive cruft?

by moritz (Cardinal)
on Mar 05, 2013 at 21:00 UTC ( [id://1021904]=note: print w/replies, xml ) Need Help??


in reply to Tie data hash to DBM file leaving massive cruft?

I haven't been able to find a specification of the dbm file format, so I can only guess. It could be either an artifact of storage format (some sort of tree), or it could be that instead of deleting entries, they are simply marked as deleted.

One way to find out is compare a copy of the file you produce now with the another you get from inserting all the key/value pairs into an empty file.

In fact I guess it's more efficient anyway to simply unlink the file instead of opening it, emptying it and then refilling it.

  • Comment on Re: Tie data hash to DBM file leaving massive cruft?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 05:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found