Speeding up (caching?) shared libraries loading

Andrea Venturoli ml at netfence.it
Tue Aug 31 16:19:17 UTC 2010


Il 08/31/10 16:35, Dan Nelson ha scritto:
> In the last episode (Aug 31), Andrea Venturoli said:
>> Suppose I have an executable which I need to invoke repeatedly (e.g. to
>> run tests in a makefile).  This executables spend most of its time loading
>> (rather than processing), due to the need of several huge shared
>> libraries.
>
> Link your program statically and bypass the dynamic linker completely.

Then my binary would be more than 200MB and it wouldn't load that fast 
either.
Besides I have several binaries using the same libraries and linking 
them all statically would take up a lot more time.

  bye & Thanks anyway
	av.


More information about the freebsd-questions mailing list