why memoizing is faster
Andrea Crotti
andrea.crotti.0 at gmail.com
Sat Mar 26 07:06:46 EDT 2011
Stefan Behnel <stefan_ml at behnel.de> writes:
>
> Not "restarted" in the sense that it gets cleaned up, though. The
> above simply passes an explicit value for it that will be used for the
> single call. Future calls won't be affected.
>
> Stefan
About this global caching thing I thought, but isn't this a source of
possible HUGE memory leaks?
I mean, when is the object _cache freed from the memory?
From my understanding until the function name is in the scope that
object will never be freed, is that correct?
More information about the Python-list
mailing list