[Top][All Lists]
[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 17:14:27 +0200 |
> From: Sujith <address@hidden>
> Date: Sat, 3 Dec 2011 20:33:15 +0530
> Cc: address@hidden,
> Alan Mackenzie <address@hidden>
>
> I can see this behavior on a low-spec machine - Intel Atom @ 1.66 GHz with
> 1GB RAM running GNU/Linux. C mode is really slow with maximum font-lock
> decoration and hitting C-v a few times is enough for the screen to lock up,
> while the CPU chugs away at full usage. After the buffer has been fully
> fontified,
> scrolling is fast. My current workaround is to set
> font-lock-maximum-decoration
> to 2.
>
> I tried the pretests to see if things have changed, but 24.0.92 has pretty
> much
> the same behavior.
Thanks.
Do you see any significant difference in performance between when
point is inside of a very large comment, like at the beginning of
src/xdisp.c, and when point is in "normal" C code, with only
relatively short comments?