emacs-devel
[Top][All Lists]
Advanced

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

Re: Scrolling huge buffers and cc-mode


From: Alan Mackenzie
Subject: Re: Scrolling huge buffers and cc-mode
Date: Wed, 19 Dec 2012 22:39:56 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Dec 19, 2012 at 11:20:55AM +0400, Dmitry Antipov wrote:
> It looks like the reason of slow scrolling is how the C++ namespaces are 
> handled.

> Basically my test file is:

> namespace X {
> namespace Y {

> /* 13K lines of code */

> } }

> /* middle-point */

> namespace X {
> namespace Y {

> /* 13K lines of code */

> } }

> When scrolling reaches middle-point, everything hangs, most probably because
> we need to scan huge regions (first and second namespace blocks). When I 
> remove
> all namespace definitions (with matched '}'), scrolling works much faster.

OK, I'll have a look at it in the next few days.

I have an idea for a solution, which would involve effectively masking
out enclosing namespaces' braces, but this might be quite complicated to
implement.

Am I right in thinking that a namespace declaration _cannot_ be enclosed
within any other type of declaration, such as a class?

> Dmitry

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

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