This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Boris.FELD, collinwinter, ezio.melotti, flox, vstinner
Date 2011-12-17.23:33:02
SpamBayes Score 0.0016921805
Marked as misclassified No
Message-id <>
> (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.
Date User Action Args
2011-12-17 23:33:03vstinnersetrecipients: + vstinner, collinwinter, ezio.melotti, flox, Boris.FELD
2011-12-17 23:33:03vstinnersetmessageid: <>
2011-12-17 23:33:02vstinnerlinkissue13623 messages
2011-12-17 23:33:02vstinnercreate