emacs-devel
[Top][All Lists]
Advanced

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

Re: cc-mode fontification feels random


From: João Távora
Subject: Re: cc-mode fontification feels random
Date: Mon, 14 Jun 2021 09:40:36 +0100

> On Mon, Jun 14, 2021 at 9:29 AM martin rudalics <rudalics@gmx.at> wrote:
>
>  > 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?

A question for Eli perhaps?  The file was xdisp.c where jit-lock is supposedly
quite demanding.

>  It introduces a constant overhead that affects every single
> character a user types.

And that overhead was found to be negligible.  Even small enough
not be easily measured.  In the meantime, if you are concerned with
this, you can produce a benchmark that evidences this overhead.

> > See C-h v jit-lock-antiblink-grace.
> It should be documented in at least one manual.

It could, but other customization options such as jit-lock-stealth-load and
jit-lock-contextually, jut-lock-stealth-nice, jit-lock-stealth-time,
and probably
others aren't.  Not all defcustom's have manual entries (for the record, IMO
this is a good idea: the manual should have a different reading cadence).
But no problem if you want to make a patch that basically adds the contents
of the docstring to display.texi.

João



reply via email to

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