efficient memoize decorator?
Fredrik Lundh
fredrik at pythonware.com
Sat Aug 19 01:49:41 EDT 2006
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