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: Thu, 23 Jan 2020 11:06:57 +0530


I don't think I understand the reasons for the changes in font-lock.el
and cc-mode.el.  Can you explain?
These changes are there only for easy testing. They are unlikely to be part of final patch.

Also, what do you mean by "disable jit-lock"?  Where does that happen?
And if you disable jit-lock, does that mean Emacs will no longer
fontify only the portions of the window it is about to display?
 There are some after change functions and region extend functions which are not really necessary with my approach. Hence I had to disable those portions. Following call stack should help you better visualize.
- redisplay_internal (C function)                                   3   2%
 - jit-lock-function                                                2   1%
  - jit-lock-fontify-now                                            2   1%
   - jit-lock--run-functions                                        2   1%
    - run-hook-wrapped                                              2   1%
     - #<compiled 0x158872bab969>                                   2   1%
      - font-lock-fontify-region                                    2   1%
       - extract                                                    2   1%

>  you could run a benchmark of scrolling through a
>  large source file top to bottom, and show the results in terms of time
>  and number of GCs.
BTW I should admit that it is WIP. Right now, my focus is only on accuracy. I have made no attempts on optimization. So consider the results accordingly.
  • Off GCs: 0 Elapsed time: 0.840946 seconds
  • Custom GCs: 0 Elapsed time: 1.172106 seconds
  • Builin GCs: 1 Elapsed time: 0.991606 seconds


reply via email to

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