[PATCH] regex performance improvement
Jack Howarth
howarth@bromo.msbb.uc.edu
Thu Nov 21 21:05:00 GMT 2002
Isamu,
I tested your proposed patch against current glibc cvs tonight
on debian ppc sid. It appears to pass make check okay and I get the
following results...
using sed built with glibc regex support before your patch....
real 1m59.282s
user 1m58.630s
sys 0m0.580s
for...
time ../sed/sed -n -f ../dc.sed < ./dc.inp >tmp.dc
using sed built with glibc regex support with your patch...
real 0m30.322s
user 0m30.130s
sys 0m0.070s
However there appears to still be some room for improvement compared
to sed built with its own regex support which gives...
real 0m10.865s
user 0m10.510s
sys 0m0.020s
It's getting close though.
Jack
More information about the Libc-alpha
mailing list