This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/250] perfomance of elf/do-lookup.h for c++
- From: "jakub at redhat dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 4 Jul 2004 13:22:55 -0000
- Subject: [Bug libc/250] perfomance of elf/do-lookup.h for c++
- References: <20040701224041.250.Woebbeking@web.de>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From jakub at redhat dot com 2004-07-04 13:22 -------
You misunderstand what the patch you're referencing does. It speeds up
string merging in SHF_MERGE sections, which has nothing to do with symbol names.
Symbol names in ELF are zero terminated strings and their length is not stored
anywhere, so ld.so would either need to do strlen before comparing the strings
backwards (note that for many symbols it is better to compare them from the
beginning than from the end anyway), which would mean going through the strings
twice instead of once. That is certainly not faster. Or ld.so would need to
cache the lengths somewhere, which complicates things a lot and I'm very doubtful
how much would it help.
It is better to avoid dynamic lookups, see prelink(8).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
http://sources.redhat.com/bugzilla/show_bug.cgi?id=250
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.