PATCH: Regex performance improvements

Paolo Bonzini bonzini@gnu.org
Tue May 8 10:06:00 GMT 2001


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: regex.c.diff
Type: text/x-diff
Size: 40307 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20010508/2aeb0425/attachment.bin>


More information about the Libc-alpha mailing list