This is the mail archive of the libc-alpha@sources.redhat.com 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: More backref performance - no strncmp


Actually, note that strncmp is not as extremely optimized as memcmp (the
loop is unrolled, but no strange tricks).  So the most highly optimized
function, in the context of regex matching, turns out to be the slowest
because of the startup overheads!  Since my_memcmp is as unoptimized as
strncmp, but is inlined and simpler, it makes sense that it is faster.

Paolo



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