Just another Perl shrine | |
PerlMonks |
Re: DBM problemby chipmunk (Parson) |
on Feb 15, 2001 at 19:27 UTC ( [id://58621]=note: print w/replies, xml ) | Need Help?? |
All of your questions are answered in tied hashed and deleting keys and their valeus (sic), a recent thread on this behavior of DBM files.
To summarize: It is an optimization that DBM files do not shrink when keys are deleted. Shuffling the bits around on disk every time a key is deleted would be too slow. Instead, the space is reused the next time a key is inserted. Read the aforementioned thread for more details.
In Section
Seekers of Perl Wisdom
|
|