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 <1427249978.46.0.948136706723.issue23573@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-03-25 02:19:38vstinnersetrecipients: + vstinner, python-dev, serhiy.storchaka
2015-03-25 02:19:38vstinnersetmessageid: <1427249978.46.0.948136706723.issue23573@psf.upfronthosting.co.za>
2015-03-25 02:19:38vstinnerlinkissue23573 messages
2015-03-25 02:19:38vstinnercreate