From: Oleksandr Gavenko <gavenkoa@gmail.com>
To: 12956@debbugs.gnu.org
Subject: bug#12956: 24.2; Move hl-line-mode to display engine so performance reason.
Date: Thu, 22 Nov 2012 00:17:02 +0200 [thread overview]
Message-ID: <87sj82zjmp.fsf@gavenkoa.example.com> (raw)
From http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12927
> > Also I found that "(global-hl-line-mode 1)" slow down scrolling in CC-mode
> > enabled buffers in two or more times. Do I need report a bug?
> No, this is expected. hl-line-mode adds itself to post-command-hook,
> and moves its overlay after each command that changes the current
> line. What this does is completely disable the redisplay
> optimizations used when only the cursor moves without any other
> changes to the text, because moving an overlay requires a thorough
> redisplay of the window, which is more expensive.
> The only bug report that I can think of is a feature request to move
> hl-line-mode into the display engine, because the display engine
> knowns very well where's the current line (when it decides where to
> display the cursor), and can do this highlighting better and much more
> efficiently.
--
Best regards!
next reply other threads:[~2012-11-21 22:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-21 22:17 Oleksandr Gavenko [this message]
2012-11-22 3:45 ` bug#12956: 24.2; Move hl-line-mode to display engine so performance reason Eli Zaretskii
2012-11-22 21:00 ` Juanma Barranquero
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=87sj82zjmp.fsf@gavenkoa.example.com \
--to=gavenkoa@gmail.com \
--cc=12956@debbugs.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).