Trizor has asked for the wisdom of the Perl Monks concerning the following question:
Last night in #perl vhold and I got to talking about a module that automatically determined good memoization candidates and took the appropriate action.
I'm now seriously considering writing this module, but I'm having some trouble coming up with what should be memoized, as opposed to the Memoize docs which tell what shouldn't be memoized.
So Monks, I put it to you: what are measurable criteria for memoization? Memoizing everything that passes the don't memoize tests seems impractical, inefficent, and an overzealous application of memoization.
As an aside, I'm open to module name suggestions because I'm not too good at naming things...
Update Fixed typo in title
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Good metrics for Memoization
by suaveant (Parson) on Aug 08, 2007 at 20:55 UTC | |
by Trizor (Pilgrim) on Aug 08, 2007 at 22:35 UTC | |
by chromatic (Archbishop) on Aug 09, 2007 at 06:03 UTC | |
by suaveant (Parson) on Aug 09, 2007 at 03:13 UTC | |
|
Re: Good metrics for Memoization
by BrowserUk (Patriarch) on Aug 09, 2007 at 06:23 UTC |