efficient memoize decorator?

thattommyhallll@gmail.com thattommyhall at gmail.com
Sat Aug 19 07:05:05 EDT 2006


I suppose that lesson should not suprise me, programming is a subtle
art that i need spend some time mastering

thanks to all that have replied

tom


Fredrik Lundh wrote:

> Gabriel Genellina wrote:
>
> > This implementation uses cPickle to generate a key from the supplied
> > function arguments, which is very slow and defeats the purpose of
> > memoizing.
>
> depends on the cost of recreating an object, of course.  it's a bit
> surprising that so many programmers seem to think that there are "one
> size fits all" solutions to caching and memoization...
> 
> </F>




More information about the Python-list mailing list