[PATCH]: Optimization for strpbrk on PowerPC

Ondřej Bílka neleai@seznam.cz
Sun Mar 2 11:01:00 GMT 2014


On Fri, Feb 28, 2014 at 08:37:25PM +0530, R Vidya wrote:
> Hi
>     Agree, I am also seeing performance improvement with x86_64 approach
> The advantage I am seeing with this approach is that it avoids
> scanning duplicate
> chars in the needle via hash table/dictionary in addition to loop
> unrolling.
>
Also I remembered for feature request to unite this code with strspn and
strcspn one. Only differences are that you report number of bytes instead of pointer,
do not handle terminating nul specially and switch roles of 0 and 1 in strspn table.



More information about the Libc-alpha mailing list