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 <1324164783.53.0.777735680262.issue13623@psf.upfronthosting.co.za>
In-reply-to
Content
> (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.
History
Date User Action Args
2011-12-17 23:33:03vstinnersetrecipients: + vstinner, collinwinter, ezio.melotti, flox, Boris.FELD
2011-12-17 23:33:03vstinnersetmessageid: <1324164783.53.0.777735680262.issue13623@psf.upfronthosting.co.za>
2011-12-17 23:33:02vstinnerlinkissue13623 messages
2011-12-17 23:33:02vstinnercreate