in reply to Re: Using tie to initialize large datastructures
in thread Using tie to initialize large datastructures
In addition to the behavior ariels mentions above, I'd like to point out it is easy to persistantly store the memoized data using tie, no muss, no fuss.
In addition, Memoize makes a good profiler-- details are available here in Dominus's article.use DB_File; tie my %cache => 'DB_File', $filename, O_RDWR|O_CREAT, 0666; memoize 'function', SCALAR_CACHE => [HASH => \%cache];
|
|---|