Alex Martelli wrote: > Steven D'Aprano <[EMAIL PROTECTED]> wrote: > ... > >>detail you shouldn't care about. Functions that cache the result of long >>time-consuming complications are _good_. > > > Not necessarily -- > <http://blogs.msdn.com/oldnewthing/archive/2004/12/20/327369.aspx> > asserts the exactly opposite principle, "Don't save anything you can > recalculate"... of course, the best approach is generally a compromise, > but it's good to be aware of the potentially high costs of caching:-). > > > Alex
Abelson and Sussman has a better discussion of this subject. Look under "memoization". John Nagle -- http://mail.python.org/mailman/listinfo/python-list