Re: Get rid of deprecated widgets
- From: "Matthias Clasen" <matthias clasen gmail com>
- To: "Soeren Sandmann" <sandmann daimi au dk>
- Cc: gtk-devel-list gnome org, Alexander Larsson <alexl redhat com>
- Subject: Re: Get rid of deprecated widgets
- Date: Wed, 5 Dec 2007 18:53:46 -0500
On 05 Dec 2007 20:26:39 +0100, Soeren Sandmann <sandmann daimi au dk> wrote:
> Alexander Larsson <alexl redhat com> writes:
>
> > A possibly interesting approach would be to put all the deprecated code
> > in another ELF section and place that section at the end. This will mean
> > that the deprecated stuff will be in one continous place and might make
> > paging in non-deprecated code slightly more efficient and less seeky.
> > I'm not sure you would be able to measure the difference this would make
> > though...
>
> That particular optimization may not be very measurable, but having
> the ability to move arbitrary functions around would make it possible
> to put the most used functions together at the front of the library,
> based on a desktop-wide profile. This would very likely be measurable.
>
If the goal is to avoid i/o at startup time, one old idea is to do
avoid the _() approach to translating property nicks and blurbs and
instead translate them only when they are actually accessed.
Currently, gtk20-properties.mo gets paged in at startup to translate
all those strings which only gui editors are going to need. Thats
144k. Maybe it is not worth the effort.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]