[issue2115] __slots__ make attribute setting 10x slower

Christian Heimes report at bugs.python.org
Thu Feb 14 23:42:32 CET 2008


Christian Heimes added the comment:

Thomas Heller wrote:
> BTW; calling PyObject_GetAttr() with interned strings for
> "__instancecheck__" and "__subclasscheck__" brings not enough speedup.

I've implemented the interning as static PyObject* in r60822. It should
give a small speedup.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2115>
__________________________________


More information about the Python-bugs-list mailing list