[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shared library depending on static library on Solaris
From: |
Sascha Schumann |
Subject: |
Re: shared library depending on static library on Solaris |
Date: |
Sun, 12 Jun 2005 20:28:02 +0200 (CEST) |
> > Having non-pic code in a shared lib has as effect that the lib
> > actually isn't shared by several processes, so it's a waste of
> > memory.
Not everyone's top priority is memory. Non-pic code runs
significantly faster on x86; for PHP scripts it can make
about 30-50% difference in speed, depending on how the engine
was built.
There are various scenarios where this is particular useful.
Think of a web server which loads various modules and
afterwards only replicates itself using fork. The maps are
shared between the related processes, so whether the code is
pic or not makes no significant difference memory-wise. The
increase in throughput is quite measurable though.
- Sascha