freebsd-dev/libexec/rtld-elf
John Polstra c15e7faad5 Performance improvements for the ELF dynamic linker. These
particularly help programs which load many shared libraries with
a lot of relocations.  Large C++ programs such as are found in KDE
are a prime example.

While relocating a shared object, maintain a vector of symbols
which have already been looked up, directly indexed by symbol
number.  Typically, symbols which are referenced by a relocation
entry are referenced by many of them.  This is the same optimization
I made to the a.out dynamic linker in 1995 (rtld.c revision 1.30).

Also, compare the first character of a sought-after symbol with its
symbol table entry before calling strcmp().

On a PII/400 these changes reduce the start-up time of a typical
KDE program from 833 msec (elapsed) to 370 msec.

MFC after:	5 days
2001-05-05 23:21:05 +00:00
..
alpha Performance improvements for the ELF dynamic linker. These 2001-05-05 23:21:05 +00:00
amd64 Performance improvements for the ELF dynamic linker. These 2001-05-05 23:21:05 +00:00
i386 Performance improvements for the ELF dynamic linker. These 2001-05-05 23:21:05 +00:00
debug.c
debug.h
Makefile
malloc.c
map_object.c
rtld.1
rtld.c Performance improvements for the ELF dynamic linker. These 2001-05-05 23:21:05 +00:00
rtld.h Performance improvements for the ELF dynamic linker. These 2001-05-05 23:21:05 +00:00
xmalloc.c