[Top][All Lists]

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

Re: x-create-frame is sluggish

From: Kenichi Handa
Subject: Re: x-create-frame is sluggish
Date: Sat, 25 Sep 2004 11:39:06 +0900 (JST)
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI)

In article <address@hidden>, address@hidden (Lőrentey Károly) writes:
> Creating a new X frame takes about two seconds on my system, which is
> long enough a delay to be distracting.  My little profiling session
> determined that most of this time is spent in xic_create_fontset,
> calling XCreateFontSet.  Is it really necessary to create a new
> fontset for each new frame?  Can I do something to speed this up?

> (`xlsfonts | wc -l' reports that I have 6205 fonts on my system.)

I think we can cache XFontSet in struct x_display_info per
each base_fontname.  Then we can avoid calling of
XCreateFontSet when we create a new frame on the same
display with the same font.

Ken'ichi HANDA

reply via email to

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