Re: [Fwd: libpng shared memory patch]



On Tuesday 25 April 2006 09:18, Behdad Esfahbod wrote:
> On Tue, 25 Apr 2006, Lubos Lunak wrote:
> > > Note that even moving from .data to .rodata is desirable anyway,
> > > even if it doesn't result in reduced memory consumption, it does
> > > result in reduced relocations which is good.
> >
> >  The question is if those few relocations are worth the effort.
>
> What I typically do when looking at a library is:
>
> 1) run: size .libs/*.o
> 2) see which object files are having exceptionally higher .data
> sizes

 I was talking specifically about the libpng case, which does not seem to pass 
this check. There may be of course other libs where .data is way too large, 
but fixing libpng doesn't seem to change anything WRT performance.

> 3) run: objdump -Ct .libs/suspect.o | grep [.]data
> 4) check the code to see what the main contenders are
> 5) if it's obvious to fix them, do
> 6) otherwise if it's a table of like 100 or more entries, seek
>    other ways to fix it, ...

-- 
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o.  e-mail: l lunak suse cz , l lunak kde org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/



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