On Mon, Apr 21, 2008 at 10:46 PM, Mike Hansen <[EMAIL PROTECTED]> wrote:
>  Sage already has two decorators that provide this functionality.
>
>  @func_persist will remember the computed values across Sage sessions
>  since the results are written to a file
>  @CachedFunction just stores the results in memory

For those interested in the background of this idea, the CS term is memoization:

http://en.wikipedia.org/wiki/Memoization

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52201

-- 
Carlo Hamalainen
http://carlo-hamalainen.net

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to