Message239213
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:38 | vstinner | set | recipients:
+ vstinner, python-dev, serhiy.storchaka |
2015-03-25 02:19:38 | vstinner | set | messageid: <1427249978.46.0.948136706723.issue23573@psf.upfronthosting.co.za> |
2015-03-25 02:19:38 | vstinner | link | issue23573 messages |
2015-03-25 02:19:38 | vstinner | create | |
|