[issue2303] isinstance is 4x as slow as in 2.5 because the common case raises

Guido van Rossum report at bugs.python.org
Tue Mar 18 05:02:19 CET 2008


Guido van Rossum <guido at python.org> added the comment:

I'll set this to critical to ensure that I look at it at least once
before we release.  I'm not sure however that we can do much about it --
nor that it matters much in practice.

Perhaps we could speed up certain common isinstance() calls by skipping
the lookup for non-heap types; I believe those never override
__instancheck__.

----------
priority:  -> critical

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


More information about the Python-bugs-list mailing list