[issue2115] __slots__ make attribute setting 10x slower
Thomas Heller
report at bugs.python.org
Thu Feb 14 21:09:46 CET 2008
Thomas Heller added the comment:
I think this is a serious problem (and thanks, amaury, for finding the
spot). comtypes, like ctypes, uses quite a bit of isinstance calls.
It is the reason that the comtypes unit tests run between 8% and 25%
slower with trunk than with python 2.5.1. If I comment out the code
that you mentioned, python trunk is slightly faster than 2.5.1. I
suggest to raise the severity.
----------
nosy: +theller
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2115>
__________________________________
More information about the Python-bugs-list
mailing list