Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by moritz (Cardinal)
on Mar 05, 2013 at 21:00 UTC ( #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
Node Status?
node history
Node Type: note [id://1021904]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2014-09-21 21:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (176 votes), past polls