Shared vs Static (please read)

Alexander Larsson alexl at redhat.com
Fri Dec 16 16:00:37 UTC 2005


On Fri, 2005-12-16 at 15:22 +0100, Pozsar Balazs wrote:
> On Fri, Dec 16, 2005 at 02:47:24PM +0100, Pozsar Balazs wrote:
> > 
> > Regarding dynamic-vs-static, I was wondering what effects does it have 
> > when an app is linked either way. Does anyone know exactly?
> 
> Err... I meant what effect _on execution speed_ does it have?

A statically linked application by itself with a lot of memory might
execute a bit faster. However, if all apps were statically linked then
all library code would be duplicated in each application leading to
general system slowdown due to more swapping and worse cache behaviour.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl at redhat.com    alla at lysator.liu.se 
He's a scrappy voodoo Green Beret possessed of the uncanny powers of an 
insect. She's a vivacious paranoid traffic cop with a birthmark shaped like 
Liberty's torch. They fight crime! 




More information about the fedora-devel-list mailing list