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: [PATCH] More regex microoptimization


Bonzini <bonzini@gnu.org> writes:

> Hi.  This further series of speedups results in an improvement of
> 6-8% on all the single-byte testcases (no backreferences, single-
> byte character sets w/o collation symbols) I tried.  They can be
> categorized as follows:
> 
> 1) add several __builtin_expect predictions.  Most are that

Maybe it would make more sense to build regex with profile feedback
using some set of test cases? iirc sed was greatly speeded up by that.

It would not work for cross glibc of course, but for native builds.

-Andi


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