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]

PATCH: Regex performance improvements


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


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