emacs-devel
[Top][All Lists]
Advanced

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

Re: slow make-frame + face initialization / importing x resources


From: Stefan Monnier
Subject: Re: slow make-frame + face initialization / importing x resources
Date: Sat, 14 Jul 2007 21:29:49 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

>> Sharing the faces between frames would be good to.
> What kind of sharing do you have in mind?  Faces are frame-specific,
> so changing a face generally affects only the frame for which it is
> changed.  If the suggested sharing will defeat this, I don't think
> it's a good idea.

I'm thinking of doing ref-counts and COW, so by default, if the new frame is
similar (e.g. on the same screen with the "same" frame parameters), so the
faces are inherited.  They can later get unshared if needed.

In typical usage patterns most frames are identical w.r.t faces and all
face-modification are applied uniformly to (almost) all frames.  So it should
be a valuable optimization.


        Stefan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]