|
1 - when does the caching occur? My understanding is that it should occur whenever a precision is requested that's smaller than any previously requested one - the new value should be calculated and then cached. For the first request, this is a tautology - any requested precision is smaller than none at all. 2 - cache storage. Not entirely sure what you mean here. I'm fairly sure that if you define a variable inside one lambda procedure, and then return a lambda procedure from that, the the inner one has access to the variable, and causes it to stick around. I could have the scope rules wrong here though. 3 - As long as you return point ratintvls, I would say no, it doesn't need caching. It depends on whether the generation of a point ratintvl is more expensive than checking a cache, but I doubt it. 4 - Yes, higher order things like add and mult should cache, as you conclude. In addition, I think iterative procedures should also use the smallest requested precision as the starting point for their new iteration. These are just my thoughts. Please discuss and critique (especially the scope issues, it'd be nice to check that out). |
Untitled by Mark Kittisopikul, 2002, Nov 29
Iteration and caching... by Benedict Singer, 2002, Nov 29
to: