[issue13623] Bytes performance regression in python3.3 vs python3.2

STINNER Victor report at bugs.python.org
Sun Dec 18 00:33:03 CET 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

> (b"A"*1000).find(b"A")    : -70%

This one is a performance regression introduced by #12170. Attached patch checks object type before trying a conversion to size_t instead of catching an exception.

----------
keywords: +patch
Added file: http://bugs.python.org/file24010/bytes_find.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13623>
_______________________________________


More information about the Python-bugs-list mailing list