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: String Functions for x86-64


Menezes, Evandro wrote:
> Here are the remaining routines bundled with the others previously submitted.  Their performance is generally better than the existing ones on x86-64 processors.

Where is the (reproducible) data to support that claim?  I have no
reason to believe you.

What are the boundary conditions?  E.g., what alignment of the
parameters did of use during the tests, etc.


>  strncmp, however, can perform a tad slower for some tiny blocks, but is faster, up to several times, for blocks 16 bytes long or larger.

But the strings passed to strncmp during normal operation are in 99% of
all cases <= 16 chars.  I have data to prove that.  The fact that you
gloss over this problem means you haven't done your homework.  You are
optimizing for the wrong use cases.

-- 
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â

Attachment: signature.asc
Description: OpenPGP digital signature


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