From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Kenichi Handa <handa@m17n.org>
Cc: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>, emacs-devel@gnu.org
Subject: Re: Display performance degradation
Date: Thu, 17 Dec 2009 17:42:58 +0100 [thread overview]
Message-ID: <4B2A5F92.9090008@swipnet.se> (raw)
In-Reply-To: <tl7ljh1eqjy.fsf@m17n.org>
Kenichi Handa skrev:
> In article <wlmy1iuxgi.wl%mituharu@math.s.chiba-u.ac.jp>, YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> writes:
>
>> I can observe significant display performance degradation on Emacs
>> 23.1.90 compared with 23.1, especially when scrolling TUTORIAL.ja on a
>> frame that uses the xft font backend. I also observe the increase of
>> the total number of xftfont_draw calls, and a string in a single font
>> and color, which was originally displayed by one call, is now
>> unnecessarily divided into smaller units.
> [...]
>> + #if 0
>> + /* This doesn't work if you have changed hinting or any other parameter.
>> + We need to make a new object in every case to be sure. */
>> for (objlist = AREF (entity, FONT_OBJLIST_INDEX); CONSP (objlist);
>> objlist = XCDR (objlist))
>> if (! NILP (AREF (XCAR (objlist), FONT_TYPE_INDEX))
>> && XFONT_OBJECT (XCAR (objlist))->pixel_size == pixel_size)
>> return XCAR (objlist);
>> + #endif
>
> I didn't notice this change because I'm using X fonts
> mainly.
>
> In article <4B29E046.8050107@swipnet.se>, "Jan D." <jan.h.d@swipnet.se> writes:
>
>> The basic question is why is this called so much?
>
> If it is not known, the above code should not be commented out.
>
>> It is a fundamental
>> flaw in Emacs that makes it hard to add new stuff without degrading
>> performance. The core problem is that Emacs internally doesn't track
>> what is changed. So it re-evaluates faces, fonts, menus, toolbars and
>> so on, all the time before redisplay, and 99.99% of those times, nothing
>> has changed. So to speed things up, we have various caches to check if
>> things are the same as before. But these caches cause problems
>> elsewhere.
>
> Those caches (including face-cache) are there because of the
> current redisplay engine (and face handling). So, without
> fixing it (in your word, a fundamental flaw), those caches
> should not be disabled.
>
>> For example, if a new font is added or if /etc/font.conf is
>> changed, Emacs must be restarted because caches prevents Emacs from
>> noticing the change.
>
> The problem of extremely slow display is the bigger problem
> than it.
>
How much is extremely, do you have figures? I haven't noticed any change,
maybe it only manifests itself for certain locales.
Jan D.
next prev parent reply other threads:[~2009-12-17 16:42 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-17 2:49 Display performance degradation YAMAMOTO Mitsuharu
2009-12-17 7:39 ` Jan D.
2009-12-17 20:08 ` Eli Zaretskii
2009-12-18 16:47 ` Jan Djärv
2009-12-18 21:20 ` Eli Zaretskii
2010-01-02 11:05 ` Jan Djärv
2010-01-02 11:21 ` Eli Zaretskii
2010-01-02 14:31 ` Jan Djärv
2009-12-17 12:24 ` Kenichi Handa
2009-12-17 14:43 ` Chong Yidong
2009-12-18 3:53 ` Miles Bader
2009-12-17 16:42 ` Jan Djärv [this message]
2009-12-18 3:06 ` YAMAMOTO Mitsuharu
2009-12-18 5:46 ` Kenichi Handa
2009-12-19 2:56 ` YAMAMOTO Mitsuharu
2009-12-19 10:00 ` Andreas Schwab
2009-12-20 6:27 ` YAMAMOTO Mitsuharu
2009-12-21 1:17 ` Kenichi Handa
2009-12-21 2:11 ` Miles Bader
2009-12-21 2:31 ` Lennart Borgman
2009-12-21 3:05 ` Miles Bader
2009-12-21 3:08 ` Lennart Borgman
2009-12-21 3:44 ` Miles Bader
2009-12-21 3:54 ` Lennart Borgman
2009-12-21 4:16 ` Miles Bader
2009-12-21 4:18 ` Lennart Borgman
2010-01-06 19:46 ` Jan Djärv
2010-01-07 8:26 ` YAMAMOTO Mitsuharu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B2A5F92.9090008@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=emacs-devel@gnu.org \
--cc=handa@m17n.org \
--cc=mituharu@math.s.chiba-u.ac.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.