STINNER Victor <victor.stin...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue13623> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com