This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/250] perfomance of elf/do-lookup.h for c++


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]