GNU bug report logs - #11545
24.0.96-mac-2.92; Strange speed problem scrolling in C++ code

Previous Next

Packages: cc-mode, emacs;

Reported by: John Wiegley <jwiegley <at> gmail.com>

Date: Wed, 23 May 2012 07:27:02 UTC

Severity: normal

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 11545 <at> debbugs.gnu.org (full text, mbox):

From: John Wiegley <jwiegley <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: rgm <at> gnu.org, mituharu+bug-gnu-emacs-mac <at> math.s.chiba-u.ac.jp,
	11545 <at> debbugs.gnu.org
Subject: Re: bug#11545: 24.0.96-mac-2.92;
	Strange speed problem scrolling in C++ code
Date: Wed, 23 May 2012 17:27:34 -0500
>>>>> Eli Zaretskii <eliz <at> gnu.org> writes:

>> Start either Emacs with -Q -nw.  Open a largish C++ file.  Hold down C-v.
>> On my laptop the lagginess was quite obvious, on my desktop a little less
>> so.

> Does the sluggishness go away if, right after starting Emacs, you type "M-x
> global-font-lock-mode RET" to disable font-lock, and _then_ visit that
> largish C++ file?

Yes.  With font-lock off, it is buttery smooth.

So it looks like either the new cc-mode, or Emacs 24, is causing lots of
GC'ing when lazy fontifying a large C++ header.  And in fact, this header is
mostly C, so there's nothing complex in it like templates to throw cc-mode off
the mark.

John




This bug report was last modified 5 years and 209 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.