This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] More regex microoptimization
- From: Andi Kleen <ak at suse dot de>
- To: Bonzini <bonzini at gnu dot org>
- Cc: libc-alpha at sources dot redhat dot com
- Date: 10 Mar 2004 18:27:33 +0100
- Subject: Re: [PATCH] More regex microoptimization
- References: <20040310113331.GA5994@fencepost.suse.lists.libc-alpha>
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