[issue32346] Speed up slot lookup for class creation

Antoine Pitrou report at bugs.python.org
Fri Jan 12 06:47:33 EST 2018


Antoine Pitrou <pitrou at free.fr> added the comment:

> Since benchgcclasses.py doesn't creates dunder methods,
cache doesn't have GC-tracked tuples, and ref cycles.

Hmm, you're right, thank you.  I can also reproduce your numbers here (using benchgcclasses2.py).  There's definitely an impact.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32346>
_______________________________________


More information about the Python-bugs-list mailing list