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 python-dev, serhiy.storchaka, vstinner
Date 2015-03-25.02:19:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
It looks like fastsearch_memchr_1char() manipulate pointers for memory alignment. It's not necessary when looking for ASCII or Latin1 characters or for bytes.

I propose to add a new fastsearch_memchr_1byte() function which would be used by bytes and bytearray, but also by str for ASCII and Latin1 strings.

Are you interested to implement this idea Serhiy?

For Windows without memrchr(), the code can be a simple loop.
Date User Action Args
2015-03-25 02:19:38vstinnersetrecipients: + vstinner, python-dev, serhiy.storchaka
2015-03-25 02:19:38vstinnersetmessageid: <>
2015-03-25 02:19:38vstinnerlinkissue23573 messages
2015-03-25 02:19:38vstinnercreate