all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Speed up make-frame?
@ 2020-01-06  5:56 Benson Chu
  0 siblings, 0 replies; only message in thread
From: Benson Chu @ 2020-01-06  5:56 UTC (permalink / raw)
  To: help-gnu-emacs

Hello!

I want to speed up the make-frame function, and I feel like I'm missing out
on some sort of configuration variable or something, because I can't find
much about it.

I've done some profiling for the issue, and it seems that most of the time
is spent in `x-create-frame-with-faces', which calls
`face-set-after-frame-default', which is where I've narrowed down the
issue. To my understanding, `face-set-after-frame-default' copies all faces
from the old frame to the new frame. For me, this is about 1,500 faces
(length (face-list)), and it takes a good 1-5 seconds to do this operation.

I spent some time today writing some advice to manually select which faces
to copy based on some regexp, which has patched up the issue partially for
me, but I am wondering if there is a more generic solution.

Thanks for the help!
Benson


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-06  5:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-06  5:56 Speed up make-frame? Benson Chu

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.