Re: [Fwd: libpng shared memory patch]
- From: Behdad Esfahbod <behdad cs toronto edu>
- To: David Turner <dturner nds com>
- Cc: performance-list gnome org, Lubos Lunak <l lunak suse cz>
- Subject: Re: [Fwd: libpng shared memory patch]
- Date: Mon, 24 Apr 2006 17:36:56 -0400 (EDT)
On Mon, 24 Apr 2006, David Turner wrote:
> Behdad Esfahbod a écrit :
> > 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.
> >
> >
> Behdad, could you elaborate about this ? I thought that relocations were
> only found on pointers,
> and given that "constant" pointers in PIC code must be stored in
> writable memory to be fixed up,
> I don't see why moving from .data to .rodata would result in any
> reduction in relocations ?
Indeed constant pointers end up in .data. What I was suggesting
is to get rid of the pointer by for example replacing "const char
*x" by "const char x[4]" where you have a list of two-letter
language tags for example... But you already know that. :)
> not to say that reducing the size of .data isn't desirable regarding
> page sharing though.
>
> Regards,
>
> - David
--behdad
http://behdad.org/
"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
-- Dan Bern, "New American Language"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]