Red Hat Bugzilla – Bug 104646
dlopen libpcre on demand instead of directly linking to it
Last modified: 2007-04-18 12:57:39 EDT
Description of problem:
Jakub suggested that grep load time might be optimised by only loading the
libpcre library when it is needed (which is rare).
Created attachment 106280 [details]
I tried this patch, but it gave no good results.
Here ./grep is without the patch and ./dgrep is with it:
$ (export LC_CTYPE=C; time for a in $(seq 1 10000); do ./grep foo grep.spec;
You have new mail in /var/spool/mail/twaugh
$ (export LC_CTYPE=C; time for a in $(seq 1 10000); do ./dgrep foo grep.spec;