[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: set-fontset-font is slow if the fontset is specified by a long name
From: |
YAMAMOTO Mitsuharu |
Subject: |
Re: set-fontset-font is slow if the fontset is specified by a long name |
Date: |
Mon, 25 Oct 2004 11:33:03 +0900 |
User-agent: |
Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 Emacs/21.3.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) |
>>>>> On Mon, 25 Oct 2004 11:01:07 +0900 (JST), Kenichi Handa <address@hidden>
>>>>> said:
> set-fontset-font converts NAME into a regular expression while
> converting every '*' into '.*'. So, the above slowness is because
> of this regular-expression processing is slow.
> (string-match "-.*-.*-.*-.*-.*-.*-.*-.*-.*-.*-.*-.*-fontset-default"
> "-*-*-*-*-*-*-*-*-*-*-*-*-fontset-default"))
> I fixed the code so that convert '*' to "[^-]*" if full XLFD is
> given. This speedups the second example, but still the first one is
> faster because it's registered in fontset-alias-alist.
How about consulting Vfontset_table literally before doing regexp
matches?
The scenario I'm considering is something like the following:
(let ((fontset (create-fontset-from-ascii-font "7x14")))
(while ...
(set-fontset-font fontset ...)
...)
(set-frame-font fontset))
YAMAMOTO Mitsuharu
address@hidden
- set-fontset-font is slow if the fontset is specified by a long name, YAMAMOTO Mitsuharu, 2004/10/24
- Re: set-fontset-font is slow if the fontset is specified by a long name, Kenichi Handa, 2004/10/24
- Re: set-fontset-font is slow if the fontset is specified by a long name,
YAMAMOTO Mitsuharu <=
- Re: set-fontset-font is slow if the fontset is specified by a long name, Kenichi Handa, 2004/10/25
- Re: set-fontset-font is slow if the fontset is specified by a long name, YAMAMOTO Mitsuharu, 2004/10/25
- Re: set-fontset-font is slow if the fontset is specified by a long name, Kenichi Handa, 2004/10/25
- Re: set-fontset-font is slow if the fontset is specified by a long name, Richard Stallman, 2004/10/26
- Re: set-fontset-font is slow if the fontset is specified by a long name, Kenichi Handa, 2004/10/27
- Re: set-fontset-font is slow if the fontset is specified by a long name, Richard Stallman, 2004/10/29
- Re: set-fontset-font is slow if the fontset is specified by a long name, Kenichi Handa, 2004/10/29
- Re: set-fontset-font is slow if the fontset is specified by a long name, Richard Stallman, 2004/10/30