[PATCH] improve regex performance

Ulrich Drepper drepper@redhat.com
Wed Jun 27 15:25:00 GMT 2001


I looked a bit more at the test and found the current code is OK.  The
limitation of .* matching only that much is something we'll live with.
I've modified the test a bit to not look beyond newlines and it works
now.

There is only one problem remaining.  I've added a call to mtrace()
and when the trace mode is enabled the program is crashing at the end.
This normally signals some kind of memory corruption.  I'm not sure
where it is yet, in my code or in regex.  I'll have to investigate
this.  In case you want to try yourself, run tst-regex with something
like

  MALLOC_TRACE=foo

in the environment.

Thanks,

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------



More information about the Libc-alpha mailing list