-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
performance issue #26
Comments
6K lines don't load fast and nav-mode works a bit slow. Humbly hoping for improvements :) |
|
So I looked into this, it seems like this should be solved on emacs >= 25: (defun highlight-symbol-flush ()
(if (fboundp 'font-lock-flush)
(font-lock-flush)
;; Emacs < 25
(with-no-warnings
(font-lock-fontify-buffer)))) font-lock-flush should passively re-fontify things, while font-lock-fontify-buffer would be the orbital performance nuke. I was using emacs-25 when I was seeing issues, but I'll re-enable things and see if I can track down what's going wrong. It might need to be more specific with what regions it dirties. |
I am using Emacs 25, but I still have this issue, especially in a large nested C code. I don't think use of
Then the performance improved. This implementation can be improved more, because you should highlight symbols only in the range from |
With enable highlight-symbol-mode have very bad performance issues on big (~500 lines) files... Cursor freezing all the time!
The text was updated successfully, but these errors were encountered: