-
Notifications
You must be signed in to change notification settings - Fork 119
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
Poor performance when display-line-numbers
is set to visual
#657
Comments
I confirm this issue, but for me performance is very bad (seconds lag on typing) even when display line numbers is disabled, especially when typing inside strings. My profile:
|
commenting the following solved the performance issues, although I don't know at what cost:
|
I can confirm too that I have problems typing inside of string delimiters even with |
Just temporarily (as I haven't had time to debug this properly yet), I've removed all functions from (setq php-syntax-propertize-functions '())) Now there's no delay when typing with or without line numbers. Of course, these functions serve a purpose so I'm assuming some syntax highlighting will no longer work. |
When using
php-mode
, ifdisplay-line-numbers
is set to'visual
then the performance when typing is very poor. The problem gets worse proportionally to the number of buffer lines; in my case it becomes noticeable when the buffer gets to around 30 lines.Here is a profile when set to
'visual
: -Here is a profile when set to
'relative
: -I am using GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.22, cairo version 1.17.3) of 2020-08-28
The text was updated successfully, but these errors were encountered: