all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Scrolling huge buffers and cc-mode
@ 2012-12-18  9:56 Dmitry Antipov
  2012-12-18 17:30 ` Eli Zaretskii
  2012-12-18 19:40 ` Stefan Monnier
  0 siblings, 2 replies; 12+ messages in thread
From: Dmitry Antipov @ 2012-12-18  9:56 UTC (permalink / raw)
  To: Emacs development discussions

[-- 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 --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-12-22  3:28 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-18  9:56 Scrolling huge buffers and cc-mode Dmitry Antipov
2012-12-18 17:30 ` 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

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.