in reply to Dynamically switching between in-memory and disk-tied data structures

Using Devel::Size for this is likely to cause problems because it uses a fairly substantial amount of memory itself when calculating the size of nested data structures. Much in the same way that Data::Dumper does, it uses it to eliminate cyclical references.

I'd advise just using the cachesize parameter (via BerkeleyDB::Env class ) and set it as large as possible without pushing the process into swapping. It will probably do a better job of balancing performance than you can.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re: Dynamically switching between in-memory and disk-tied data structures