[Haskell-cafe] function result caching
rootbeer at redcat.com
Thu Oct 12 17:36:40 EDT 2006
On 10/12/06, Silviu Gheorghe <ghesil.lists at gmail.com> wrote:
> I'd like to know if the results are "cached" by the compiler
Hardly ever, as I understand things.
> if they are not I'd like to know what is the best way to cache them
> manually, and where can I read more about this, and the optimizations the
> compiler does, because I've searched the web before and i found very little
> on this topic.
You need to search for the word "memoize" (or "memoise"). Here's a
page about a memo function for GHC.
Hope this helps!
More information about the Haskell-Cafe