freebsd-nq/libexec/rtld-elf/amd64
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
..
elf_rtld.x
lockdflt.c Fix a bug which could cause programs with user threads packages to 2000-07-17 17:18:13 +00:00
Makefile.inc
reloc.c Performance improvements for the ELF dynamic linker. These 2001-05-05 23:21:05 +00:00
rtld_machdep.h Solve the dynamic linker's problems with multithreaded programs once 2000-07-08 04:10:38 +00:00
rtld_start.S $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00