[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Slow fontification in C mode buffers
From: |
Kan-Ru Chen |
Subject: |
Re: Slow fontification in C mode buffers |
Date: |
Wed, 14 Dec 2011 23:02:12 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) |
Hi!
Alan Mackenzie <address@hidden> writes:
> Hello, yet again!
>
> On Tue, Dec 13, 2011 at 11:31:36PM +0800, Kan-Ru Chen wrote:
>> Alan Mackenzie <address@hidden> writes:
>
>> > By a happy coincidence, I've just tracked down another sluggishness (in
>> > large array initialisations, reported by Peter Milliken on bug-cc-mode)
>> > which looks to have exactly the same cause, namely
>> > `c-font-lock-enclosing-decls' which fontifies the innards of a
>> > struct/union/enum when jit-lock etc. starts in the middle of it.
>
>> Is this the same problem?
>
>> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10288
I was editing this file
https://hg.mozilla.org/mozilla-central/raw-file/tip/dom/base/nsDOMClassInfo.cpp
The one in bug report is a reduced example that has same behavior
> As a workaround, put this into your .emacs:
>
> (add-hook 'c-mode-common-hook
> (lambda () (setq c-macro-with-semi-re nil)))
> . It gives a speed up of about a factor of 4.
Thanks! "Macros with ;" is a very useful tip too.
> As a more drastic workaround, disable font-locking with
> M-x font-lock-mode
The fix for Peter also helps a bit.
--
Kanru
- Slow fontification in C mode buffers, (continued)
- Slow fontification in C mode buffers, Sujith, 2011/12/03
- Re: Slow fontification in C mode buffers, Alan Mackenzie, 2011/12/03
- Re: Slow fontification in C mode buffers, Alan Mackenzie, 2011/12/15
- Re: Slow fontification in C mode buffers, Kan-Ru Chen, 2011/12/15
- Re: Slow fontification in C mode buffers, Alan Mackenzie, 2011/12/15
- Re: Slow fontification in C mode buffers, Kan-Ru Chen, 2011/12/15
- Re: Slow fontification in C mode buffers, Alan Mackenzie, 2011/12/16
- Re: Slow fontification in C mode buffers, Kan-Ru Chen, 2011/12/17
- Re: Slow fontification in C mode buffers, Alan Mackenzie, 2011/12/21
- Re: Slow fontification in C mode buffers, Geoff Gole, 2011/12/21
- Re: Slow fontification in C mode buffers, Alan Mackenzie, 2011/12/21
- Re: Slow fontification in C mode buffers, Geoff Gole, 2011/12/21