Bug 104646 - dlopen libpcre on demand instead of directly linking to it
Summary: dlopen libpcre on demand instead of directly linking to it
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: grep
Version: 1.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-09-18 13:14 UTC by Tim Waugh
Modified: 2007-04-18 16:57 UTC (History)
0 users

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-11-08 14:32:44 UTC
Embargoed:


Attachments (Terms of Use)
grep-2.5.1-pcre.patch (3.15 KB, patch)
2004-11-08 14:32 UTC, Tim Waugh
no flags Details | Diff

Description Tim Waugh 2003-09-18 13:14:48 UTC
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).

Comment 1 Tim Waugh 2004-11-08 14:32:01 UTC
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


Note You need to log in before you can comment on or make changes to this bug.