[Top][All Lists]

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

Re: cc-mode fontification feels random

From: martin rudalics
Subject: Re: cc-mode fontification feels random
Date: Mon, 14 Jun 2021 10:29:27 +0200

> I benchmarked the effects of this
> in large files according to specific instructions by Eli who was also
> concerned about the performance hit and found no evidence of any kind of
> punishment.

Why on earth should file size have any impact on the performance of this
option?  It introduces a constant overhead that affects every single
character a user types.  You simply delay unfontifying the remaining
part of a buffer until editing leaves the current line.

>> And it should be documented somewhere.
> See C-h v jit-lock-antiblink-grace.

It should be documented in at least one manual.

> If it's a performance-only optimization with non-zero functional
> detriment it should be off by default.

It is undocumented practice to steadily undermine the role of
`open-paren-in-column-0-is-defun-start' in all modes with
`beginning-of-defun' the only place left where it currently has any
impact.  For some reason, people are afraid though of setting it off by
default (or declaring it obsolete).


reply via email to

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