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

Jeffrey Yasskin report at bugs.python.org
Sun Mar 16 16:45:42 CET 2008


New submission from Jeffrey Yasskin <jyasskin at gmail.com>:

r58099 added an exception to the common case of PyObject_IsInstance(),
when the class has no __instancecheck__ attribute. This makes
isinstance(3, int) take 4x as long as in python 2.5.

----------
assignee: gvanrossum
components: Interpreter Core
messages: 63580
nosy: gvanrossum, jyasskin
severity: normal
status: open
title: isinstance is 4x as slow as in 2.5 because the common case raises
type: behavior
versions: Python 2.6

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


More information about the New-bugs-announce mailing list