This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
PATCH: Regex performance improvements
- To: libc-alpha at sources dot redhat dot com
- Subject: PATCH: Regex performance improvements
- From: Paolo Bonzini <bonzini at gnu dot org>
- Date: Tue, 08 May 2001 19:05:47 +0200
Here is the unified diff for the changes I posted.
2001-05-08 Paolo Bonzini (bonzini@gnu.org)
* posix/regex.c [__GNUC__]: define HAVE_GOTO_VOID_P
* posix/regex.c [HAVE_GOTO_VOID_P] (re_match_2_internal): use
first-class labels instead of a switch statement
* posix/regex.c (re_match_2_internal): replaced break statements
with NEXT, to check for p > pend before going to the top of the
loop. Moved the end-of-pattern code from the top of the loop to
the bottom (before the failure code).
2001-05-07 Paolo Bonzini (bonzini@gnu.org)
* posix/regex.c [SINGLE_STRING] (re_match_2_internal): disable
double buffer support
* posix/regex.c [FORCE_POSIX_DOTS] (re_match_2_internal): dot
matches everything
* posix/regex.c [FORCE_POSIX_DOTS] (compile_regex): set the
appropriate syntax bits before starting the parsing loop
--
|_ _ _ __
|_)(_)| ) ,'
-------- '-._
regex.c.diff