tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Small ld.elf_so speed up
On Thu, Apr 01, 2010 at 11:25:13PM +0200, Joerg Sonnenberger wrote:
> The function pointer array approach works and is the best way to handle
> modules, e.g. when you have to deal with function pointers anyway.
> Otherwise it is generally an inferior calling convention.
To be fair, this depends on the architecture. The PIC models used for
ELF on most non-x86 architectures use function pointers and on some of
those an i386-like PLT approach would be ruinously expensive.
Meanwhile, you've ignored the fact that his library works via a
jumptable instead of binding by name; of course it's faster if you
have 10,000 functions called once each and it has nothing to do with
branch prediction.
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index