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 v3 00/18] Improve generic string routines


On Thu, 11 Jan 2018, Adhemerval Zanella wrote:

> > This contains lot of glaring issues, main ones are:
> > strnlen - quite ineffective as testing vs zero is faster than generic c.
> > Could be trivially improved by inlining memchr. 
> 
> The 08/08 is using memchr instead (just no inline it)...

Which is a good idea on the general principles of architectures being able 
to add optimized versions of a few common functions, such as memchr, and 
have those used internally by the less common functions, such as strnlen.

-- 
Joseph S. Myers
joseph@codesourcery.com


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