* set-window-margins: lag moving cursor?
@ 2019-02-06 20:09 Marcelo Toledo
2019-02-07 14:34 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Marcelo Toledo @ 2019-02-06 20:09 UTC (permalink / raw)
To: emacs-devel
Hi,
I've recently noticed a lag moving cursor around. When trying to track down the problem I’ve noticed that it was related to set-window-margins.
Why am I using set-window-margins?
When I use really large monitors with GNU Emacs and only one window, I like to add margins left and right to align 100 columns of total width in the middle. Code gets centralized and it’s easier to code.
Code I am using currently: https://github.com/marcelotoledo/centralized-mode
Code I was using before: https://github.com/rnkn/olivetti
What environment I’ve tested:
* Mac OS X 10.14
* GNU Emacs 26.1 (latest stable version)
* Build options: ./configure --build=x86_64-apple-darwin --without-dbus --with-ns
In that environment I’ve tested speed of cursor moving around random files.
How exactly I’ve tested?
I’ve set the cursor in the top of the buffer and measured the speed to reach the buttom simply pressing the key binded to <down>. I’ve done that several times and calculated the average (it was pretty steady).
When I don’t have set-window-margins set it’s moving in a regular speed.
But whenever have set-window-margins set, it’s easy to notice a ~ 25% reduction of speed moving cursor around.
I’ve been reading the source code and trying to figure out what exactly is the problem and I was wondering if anyone could help me understand why this is happening and what part of code is bringing this behavior.
Happy to provide more data.
Thanks in advance
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: set-window-margins: lag moving cursor?
2019-02-06 20:09 set-window-margins: lag moving cursor? Marcelo Toledo
@ 2019-02-07 14:34 ` Eli Zaretskii
[not found] ` <CEF03650-8BB9-4D57-9B34-980266A104E4@marcelotoledo.com>
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2019-02-07 14:34 UTC (permalink / raw)
To: Marcelo Toledo; +Cc: emacs-devel
> From: Marcelo Toledo <marcelo@marcelotoledo.com>
> Date: Wed, 6 Feb 2019 18:09:15 -0200
>
> When I use really large monitors with GNU Emacs and only one window, I like to add margins left and right to align 100 columns of total width in the middle. Code gets centralized and it’s easier to code.
>
> Code I am using currently: https://github.com/marcelotoledo/centralized-mode
> Code I was using before: https://github.com/rnkn/olivetti
>
> What environment I’ve tested:
>
> * Mac OS X 10.14
> * GNU Emacs 26.1 (latest stable version)
> * Build options: ./configure --build=x86_64-apple-darwin --without-dbus --with-ns
>
> In that environment I’ve tested speed of cursor moving around random files.
>
> How exactly I’ve tested?
>
> I’ve set the cursor in the top of the buffer and measured the speed to reach the buttom simply pressing the key binded to <down>. I’ve done that several times and calculated the average (it was pretty steady).
>
> When I don’t have set-window-margins set it’s moving in a regular speed.
>
> But whenever have set-window-margins set, it’s easy to notice a ~ 25% reduction of speed moving cursor around.
>
> I’ve been reading the source code and trying to figure out what exactly is the problem and I was wondering if anyone could help me understand why this is happening and what part of code is bringing this behavior.
>
> Happy to provide more data.
Thanks. Please show a complete recipe to reproduce this problem,
starting from "emacs -Q", including how you measured the speed. A 25%
slowdown is not easy to spot, so I want to be sure I'm doing the same
as you did to see the problem, and measure the same quantity. Up
front, I don't see why cursor motion would be significantly slower
with margins, but maybe I'm missing something.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-02-08 21:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-06 20:09 set-window-margins: lag moving cursor? Marcelo Toledo
2019-02-07 14:34 ` Eli Zaretskii
[not found] ` <CEF03650-8BB9-4D57-9B34-980266A104E4@marcelotoledo.com>
[not found] ` <4A53CAA5-EB34-4291-AE56-2D7C0D592A29@marcelotoledo.com>
2019-02-08 21:10 ` Eli Zaretskii
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.