It seems that memoize's cache over tied hash would work, or maybe you'd like to periodically dump your db into Tie-MmapArray files, which seems to resemble your request of an auto init function. You'd pick which pre-prepared file to tie in after getting user input, and voila your memory is useable.
In reply to Re: Using tie to initialize large datastructures
by mattr
in thread Using tie to initialize large datastructures
by htoug
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |