unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Mark Karpov <markkarpov@openmailbox.org>
Cc: 21453@debbugs.gnu.org
Subject: bug#21453: When font size is temporarily increased Emacs is slow
Date: Mon, 28 Sep 2015 14:57:07 +0300	[thread overview]
Message-ID: <837fnaeoz0.fsf@gnu.org> (raw)
In-Reply-To: <87eghkdt1n.fsf_-_@openmailbox.org>

> From: Mark Karpov <markkarpov@openmailbox.org>
> Cc: 21453@debbugs.gnu.org
> Date: Sun, 27 Sep 2015 17:02:12 +0600
> 
> The Results
> ===========
> 
> Here I post measured times:
> 
>   Font Size       Time in Seconds
>   normal           301.423
>   +1              1055.157
>   -1               487.935

I see something very different on my system, so this could be specific
to X or even your font back-end (xft).

Here are my times:

  Font Size       Time in Seconds
                   ELisp  Fundamental
  normal           139.9  113.2
  +1               140.4  112.2
  -1               282.0  126.4
  -2                      148.8
  +2                      114.4

The second column of numbers is with the same file, but with font-lock
turned off, after rejecting the file-local variables, and in
Fundamental mode.  As you see, the differences are much smaller in
Fundamental mode.  This points to face remapping as the possible
reason for slower redisplay, at least in my case.  When you enlarge or
decrease the default font size, Emacs needs to look up the faces in
face-remapping-alist each time it needs to redisplay something, which
could explain some slowdown.

I don't know why the +1 case is so much slower on your system; perhaps
you could use some kind of profiler to see what takes most of the time
in that case.  You could start with the Emacs's built-in profiler,
although I doubt it will tell something revealing, because I think the
reason is below the level the built-in profiler can look.

In any case, I understand now why you perceive the slowdown as
significant: if it takes 1000 sec to scroll through a 8000-line file,
it means you get just 8 lines-per-second, which is slow enough to
annoy.  As you see, on my system, I get 5 times faster performance,
which is below human annoyance threshold.





  reply	other threads:[~2015-09-28 11:57 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-10  9:56 bug#21453: 25.0.50; When font size is temporarily increased Emacs is slow Mark Karpov
     [not found] ` <handler.21453.B.144187938115566.ack@debbugs.gnu.org>
2015-09-10 10:05   ` bug#21453: " Mark Karpov
2015-09-10 15:41 ` bug#21453: 25.0.50; " Eli Zaretskii
2015-09-10 17:33   ` Mark Karpov
2015-09-11 12:16   ` Mark Karpov
2015-09-11 12:34     ` Eli Zaretskii
2015-09-11 12:46       ` Mark Karpov
2015-09-11 13:47         ` Eli Zaretskii
2015-09-11 16:08           ` Mark Karpov
2015-09-11 17:28             ` Eli Zaretskii
2015-09-26  7:07             ` Eli Zaretskii
2015-09-26 12:38               ` Mark Karpov
2015-09-26 13:36                 ` Eli Zaretskii
2015-09-27 11:02                   ` bug#21453: " Mark Karpov
2015-09-28 11:57                     ` Eli Zaretskii [this message]
2019-11-17  6:32                       ` Lars Ingebrigtsen
2015-09-27 11:17                   ` bug#21453: 25.0.50; " Mark Karpov
2015-09-27 11:21                   ` bug#21453: " Mark Karpov
2017-04-08 14:08 ` bug#21453: When font size is temporarily increased Emacs is slow also on 25.2.1 Gennady Uraltsev
2017-04-08 14:08 ` Gennady Uraltsev
2017-04-08 14:10 ` Gennady Uraltsev
2017-04-08 14:11 ` Gennady Uraltsev
2017-04-08 14:14 ` Gennady Uraltsev

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=837fnaeoz0.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=21453@debbugs.gnu.org \
    --cc=markkarpov@openmailbox.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).