This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH]: Optimization for strpbrk on PowerPC


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]