|
From: | Tony Abou-Assaleh |
Subject: | Re: [bug #23321] Epsclosure speedup patch |
Date: | Fri, 23 May 2008 03:03:11 -0300 |
User-agent: | Thunderbird 2.0.0.14 (Macintosh/20080421) |
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: address@hidden Web site: http://tony.abou-assaleh.net
[Prev in Thread] | Current Thread | [Next in Thread] |