From: Dmitry Antipov <dmantipov@yandex.ru>
To: Emacs development discussions <emacs-devel@gnu.org>
Subject: Scrolling huge buffers and cc-mode
Date: Tue, 18 Dec 2012 13:56:13 +0400 [thread overview]
Message-ID: <50D03DBD.5000704@yandex.ru> (raw)
[-- Attachment #1: Type: text/plain, Size: 586 bytes --]
Attached is a C++ source file to reproduce the painfully slow scrolling
under cc-mode. Test is simple: just visit it and press <page-down>, or <next>,
or whatever else bind to scroll-up-command, until buffer end is reached.
The file is ~900K; when scrolling reaches 50%, everything is stopped, may
be up to a few minutes (!), there is no response to any keyboard input
including C-g, and CPU consumption is ~80-90%. After that, scrolling is
resumed, but it's still _very_ slow. This looks like a C++ issue only
since xdisp.c of nearly the same size may be scrolled much faster.
Dmitry
[-- Attachment #2: test.cc.xz --]
[-- Type: application/x-xz, Size: 144492 bytes --]
next reply other threads:[~2012-12-18 9:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-18 9:56 Dmitry Antipov [this message]
2012-12-18 17:30 ` Scrolling huge buffers and cc-mode Eli Zaretskii
2012-12-18 19:58 ` Stefan Monnier
2012-12-19 6:04 ` Dmitry Antipov
2012-12-19 7:20 ` Dmitry Antipov
2012-12-19 22:39 ` Alan Mackenzie
2012-12-20 0:52 ` Michael Welsh Duggan
2012-12-20 22:29 ` Alan Mackenzie
2012-12-21 5:15 ` Dmitry Antipov
2012-12-21 10:57 ` Alan Mackenzie
2012-12-22 3:28 ` Chong Yidong
2012-12-18 19:40 ` Stefan Monnier
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=50D03DBD.5000704@yandex.ru \
--to=dmantipov@yandex.ru \
--cc=emacs-devel@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.