[Python-3000] Adaptation vs. Generic Functions
Phillip J. Eby
pje at telecommunity.com
Sat Apr 8 22:32:46 CEST 2006
At 08:01 AM 4/8/2006 -0700, Guido van Rossum wrote:
>Check out the accelerated version in time_overloading.py in the svn
>sandbox/overloading/. It's mostly faster than the manual version!
>
>Anyway, you seem to be confirming that it's the speed with which we
>can do a cache lookup. I'm not worried about that now.
Btw, the cache should probably hold tuples of weakrefs to types, so as not
to leak classes in programs that create and discard classes
dynamically. (E.g., they create temporary classes in closures that get
called a lot.)
More information about the Python-3000
mailing list