[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Slow frame creation when many faces defined
From: |
Kim F. Storm |
Subject: |
Re: Slow frame creation when many faces defined |
Date: |
Mon, 14 Nov 2005 00:38:44 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
"Richard M. Stallman" <address@hidden> writes:
> In a realistic setting I've got around 400-600 faces listed in face-
> new-frame-defaults, but they are obviously more complex than what is
> created in the simplified example above.
>
> It might be possible to optimize the code that handles faces
> when creating a frame. That code is very complex, has many levels
> that were written at different times, and very likely is doing a lot
> of things the hard way. Rewriting it from scratch, after making a new
> design that is clear, could probably make it much faster.
>
> That would be a useful thing to do, but now is not the time to install
> it. I will add it to etc/TODO.
It would be interesting if someone would do some profiling of the
relevant code to see if there is a specific loop that accounts for
most of the time spent here. It could be something which was easy
to optimize once we know what it is.
--
Kim F. Storm <address@hidden> http://www.cua.dk