emacs-devel
[Top][All Lists]
Advanced

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

Re: Semantic font-lock for Java


From: Anand Tamariya
Subject: Re: Semantic font-lock for Java
Date: Fri, 24 Jan 2020 21:45:55 +0530

>       - font-lock-fontify-region                                    2   1%
>        - extract                                                    2   1%

(I suppose you meant "extend", not "extract"?)
I was referring to font-lock-extend-region-functions variable. "extract" function name is just a temporary short name. Makes my testing easier. Will name it something better when I've it working according to my preferences.

Then I'm unsure why you said you needed to "disable jit-lock".
Removing the calls to CC mode's after-change hooks doesn't disable JIT
font lock in any way.  What am I missing?
I added in clarification that I had to **disable portions** . Look at lisp/progmodes/cc-mode.el (746-748). Those lines are commented. Similarly some other places in cc-mode.el and font-lock.el are commented.

> * Off GCs: 0 Elapsed time: 0.840946 seconds
> * Custom GCs: 0 Elapsed time: 1.172106 seconds
> * Builin GCs: 1 Elapsed time: 0.991606 seconds

I'm not sure I understand these results.  What does each line
represent?  Did you run the same benchmark with the default font-lock
and with your modifications, and if so, which of these lines shows
results for what variant of font-lock?

Off - Refers to when font-lock is disabled
Custom - Refers to when my "extract" function is doing the fontification
Builtin - Refers to jit-lock mode as that's the default for font-lock mode

Hope that helps.

reply via email to

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