Subject: Re: bug#25706: 26.0.50; Slow C file fontification

From: Mattias Engdegård <[email-masked]>
Date: Tue, 1 Dec 2020 14:34:58 +0100

1 dec. 2020 kl. 06.48 skrev Ravine Var <[email-masked]>:

> Will this patch fix the problem with big header files like
> the one originally reported ?

Unfortunately it seems that my benchmarking approach was misleading; see my previous reply to Alan. Sorry about that.
The patch helps a bit but not nearly enough, so for big header files like the ones you mention in the asic_reg directory, it may not make much of a difference.

It is obviously worthwhile, but again as Alan noted, the incremental fontifying cost increases with distance from the start of the file (absent any actual code other than preprocessor definitions), leading to the observed superlinear behaviour. More robust heuristics needed.