[New-bugs-announce] [issue1762] Inheriting from ABC slows Decimal down.

Jeffrey Yasskin report at bugs.python.org
Tue Jan 8 17:39:10 CET 2008


New submission from Jeffrey Yasskin:

Adding numbers.Real to Decimal's base classes almost doubles the time
its its test suite takes to run. A profile revealed that a large
fraction of that slowdown was in __instancecheck__, but even after
optimizing that, it's still about 25% slower. It looks like the rest of
the slowdown is still in other parts of the isinstance() check. It would
be nice if inheriting from ABCs didn't slow your class down.

----------
components: Library (Lib)
messages: 59543
nosy: jyasskin, nnorwitz
severity: normal
status: open
title: Inheriting from ABC slows Decimal down.

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


More information about the New-bugs-announce mailing list