Johan Walles wrote:
Follow-up Comment #1, bug #23321 (project grep):
The just attached file shows grep benchmark results. I got the patterns file
by doing:
cat /etc/logcheck/ignore.d.workstation > /tmp/ignore
The numbers show the startup time for grep with about 2500 regexps read from
a file (logcheck does this every hour) is:
Plain 2.5.3 : 68.0s
CALLOC patch : 24.2s
int->char patch: 5.8s
Adding 10000 lines of input (my /var/log/daemon.0 log file) doesn't change
the numbers much:
Plain 2.5.3 : 70.4s
Both CALLOC and
int->char patch: 5.7s
The numbers look very promising. Thanks Johan. The CALLOC line is
already in the latest source in the CVS. If no one objects in the next
few days, the int->char change will be applied.
If you find similar (or other) inefficiencies in the code, I will
happily apply correcting patches.
Cheers,
TAA
--
Tony Abou-Assaleh
Email: [EMAIL PROTECTED]
Web site: http://tony.abou-assaleh.net