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] grep-2.5.1-pcre.patch 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; done) real 1m22.156s user 0m29.446s sys 0m31.400s 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; done) real 1m1.958s user 0m30.009s sys 0m31.504s