On 09/10/2007, Andrew Suffield <[EMAIL PROTECTED]> wrote:
> Well, given that glibc is parsing both those files during the startup
> of most significant network applications and I doubt SuSE would accept
> that big a penalty, my working theory is that your perl parser is just
> slow compared to the libc one (likely, since C code is usually much
> faster than perl). There's no good reason for reimplementing the libc
> logic anyway, and you should be letting libc handle it just to get
> nsswitch.conf support. Try the attached patch which switches it over
> to using perl's builtin interface to NSS, see if that helps.
>

On a Fedora 7 machine:

$ time ./buildports-orig.pl >/dev/null

real    0m0.261s
user    0m0.249s
sys     0m0.012s

$ time ./buildports-patched.pl >/dev/null

real    0m0.130s
user    0m0.115s
sys     0m0.015s

J.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to