
12 Oct
2006
12 Oct
'06
5:36 p.m.
On 10/12/06, Silviu Gheorghe
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. http://www.haskell.org/ghc/docs/6.4.2/html/hslibs/memo-library.html Hope this helps! --Tom Phoenix