[issue1762] Inheriting from ABCs makes classes slower.

Jeffrey Yasskin report at bugs.python.org
Thu Feb 14 09:05:16 CET 2008


Jeffrey Yasskin added the comment:

Guido and I discussed this, and the next step seems to be to rewrite
_Abstract in C and push it into object. For an idea of how much that'll
help, just commenting out _Abstract.__new__ takes the Fraction()
constructor from 9.35us to 6.7us on my box, and the C we need (a new
flag on the class) should run very quickly.

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


More information about the Python-bugs-list mailing list