emacs-devel
[Top][All Lists]
Advanced

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

Re: Slow fontification in C mode buffers


From: Eli Zaretskii
Subject: Re: Slow fontification in C mode buffers
Date: Sat, 03 Dec 2011 18:19:26 +0200

> Date: Sat, 3 Dec 2011 15:18:24 +0000
> From: Alan Mackenzie <address@hidden>
> Cc: address@hidden
> 
> 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.

Can this explain the slowness when inside a long comment?

> I've got a solution, though it's not fully worked out yet.  Give me till
> later on today, possibly tomorrow.

Take your time, it's not a catastrophe.  Not many C source files have
such long commentary sections as xdisp.c.  It's just that I use
xdisp.c for my benchmark, since it's a large file.

Thanks.



reply via email to

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