[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scrolling huge buffers and cc-mode

From: Dmitry Antipov
Subject: Scrolling huge buffers and cc-mode
Date: Tue, 18 Dec 2012 13:56:13 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

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.


Attachment: test.cc.xz
Description: application/xz

reply via email to

[Prev in Thread] Current Thread [Next in Thread]