Re: libproxy as external dependency



On Fri, 2008-10-24 at 11:09 +0100, Rui Tiago Cação Matos wrote:
> 2008/10/24 Xavier Bestel <xavier bestel free fr>:
> > - yet another library, slowing applications startup.
> 
> Actually, I've been thinking about this problem lately. Why don't
> people use dlopen() more often? If you use a library in your app which
> is not intrinsically essential to it (like gtk+ is) why are you
> linking to it at load time? In general I think GUI apps should be
> designed to load up as fast as possible, lazily loading and processing
> as much as possible.

that's already what happens by default: used symbols are only paged in
when needed.

the default penalty for adding a shared object is 4 kB, and if the
library has been written correctly, the amount of dirty RSS memory
should be 0.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi,
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]