unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Glenn Morris <rgm@gnu.org>
Cc: 14259@debbugs.gnu.org
Subject: bug#14259: 24.1; global-linum-mode slows down scrolling and user input in DocView
Date: Wed, 24 Apr 2013 14:47:02 -0400	[thread overview]
Message-ID: <jwvehdz3h90.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <754nevvpj5.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed, 24 Apr 2013 12:53:18 -0400")

> 2. Open a PDF that has pages you can scroll
[...]
> 5. Ensure the global-linum-mode is enabled and now scroll around/change
> pages/etc. There should be a noticeable lag that makes it very hard to use

Indeed, I can reproduce it, and it's not just a "noticeable lag" for me,
it's so dog slow that it makes you feel like Emacs is failing to respond.

> Does it help to use nlinum from GNU ELPA instead?

Yes, it's much faster.  With nlinum-mode, there is still a slowdown
(slightly more noticeable for horizontal scrolls than vertical scrolls),
but it's much less severe.
You can see the exact same slow down if you just do:

  M-: (set-window-margins (selected-window) 2) RET

So the performance cost doesn't come from nlinum-mode.
As for linum-mode, I'm not sure where the performance problem lies.


        Stefan





  reply	other threads:[~2013-04-24 18:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-24 10:24 bug#14259: 24.1; global-linum-mode slows down scrolling and user input in DocView James Hudon
2013-04-24 16:53 ` Glenn Morris
2013-04-24 18:47   ` Stefan Monnier [this message]
2013-04-24 20:57     ` James Hudon
2020-08-21 14:06       ` Stefan Kangas

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=jwvehdz3h90.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=14259@debbugs.gnu.org \
    --cc=rgm@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 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).