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 Fri, Apr 02, 2010 at 04:14:47PM +0100, Sad Clouds wrote:
 > I did another test, where I replaced a very simplistic "increment by
 > one" function with "find first set" function.
 > 
 > I defined a total of 20 identical functions - fn_1() to fn_20().
 > Built shared libraries and executables with 'gcc -O3'.
 > Based on your suggestion, called 20 function in a loop 1,000,000 times.
 > [snip]

Did you compile both with -fPIC? That also affects performance,
sometimes quite a bit.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index