From: Mark Karpov <markkarpov@openmailbox.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 21453@debbugs.gnu.org
Subject: bug#21453: When font size is temporarily increased Emacs is slow
Date: Sun, 27 Sep 2015 17:02:12 +0600 [thread overview]
Message-ID: <87eghkdt1n.fsf_-_@openmailbox.org> (raw)
In-Reply-To: <831tdlgv51.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 26 Sep 2015 16:36:26 +0300")
Here I describe my experiment and its outcome.
Setting
=======
To measure how long it takes to scroll a long buffer from beginning to
end with ‘next-line’ command the following code was evaluated:
(defmacro with-timer (title &rest forms)
"Run the given FORMS, counting the elapsed time.
A message including the given TITLE and the corresponding elapsed
time is displayed."
(declare (indent 1))
(let ((nowvar (make-symbol "now"))
(body `(progn ,@forms)))
`(let ((,nowvar (current-time)))
(message "%s..." ,title)
(prog1 ,body
(let ((elapsed
(float-time (time-subtract (current-time) ,nowvar))))
(message "%s... done (%.3fs)" ,title elapsed))))))
(defun next-line-racer ()
"Scroll till end of buffer with `next-line' and measure how long it takes.
To make it realistic `next-line' is called interactively."
(interactive)
(with-timer
(while (not (eobp))
(call-interactively #'next-line))))
The file used:
https://github.com/Fuco1/smartparens/blob/master/smartparens.el
which is 7992 lines long.
The Experiment
==============
The file is opened and cursor is at the beginning of the file. Font size
is either altered with ‘C-x C-=’ (increased, denoted in results as +1)
or ‘C-x C--’ (decreased, denoted in results as -1) or not altered at
all. No adjustments to compensate number of visible lines were performed
in this experiment because I think difference wouldn't be noticeable.
Then ‘M-x next-line-racer’ is called. Emacs seemingly freezes for some
time until it shows the point (cursor) at the end of the buffer and
message in mini-buffer displaying time it took to accomplish the
scrolling.
No demanding processes were run in the background during the experiment.
The Results
===========
Here I post measured times:
Font Size Time in Seconds
normal 301.423
+1 1055.157
-1 487.935
Hope it helps.
next prev parent reply other threads:[~2015-09-27 11:02 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 ` Mark Karpov [this message]
2015-09-28 11:57 ` bug#21453: " Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87eghkdt1n.fsf_-_@openmailbox.org \
--to=markkarpov@openmailbox.org \
--cc=21453@debbugs.gnu.org \
--cc=eliz@gnu.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 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.