-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Slow performance of Emacs, in general, and with LaTeX in particular #16517
Comments
I have noticed this too and am currently using the following workaround: (defun fn/not-in-pdf-view-mode (orig-fun &rest args)
(unless (eq major-mode 'pdf-view-mode)
(apply orig-fun args)))
;; evil-refresh-cursor is called as part of the window-configuration-change-hook
;; and seems to induce performance problems
;; TODO fix this properly
(advice-add 'evil-refresh-cursor :around 'fn/not-in-pdf-view-mode) Does this help? Of course it would be nice to have a proper fix, perhaps upstream in evil. |
Thanks; I am trying it. However, I feel there is a delay in moving the cursor upon writing. Probably, it is better, but still not smooth; even when switching between buffers |
Thanks, a profiler report could be helpful to diagnose the issue then; the profiler commands are bound under the SPC h P prefix. |
I think the latex layer is due for a review anyway. A profiler report would be cool though. |
I have added your workaround to the core, even if this is not the primary issue it is an issue which we should avoid. |
This is a profiler, but I think the problem does not appear here
|
I would try something like
Using |
The following is the profiler output, after just opening PDFs, several times, playing with window and so on. No LaTeX. The performance was really bad. even resizing windows, or maximizing window is slow. |
Sorry; the files access was restricted. Now, it is open |
Part of the latex rework task |
This is probably a problem upstream in pdf-tools and probably unrelated to the latex layer. I just found that setting If disabling |
Sounds good, lets change the default |
Apparently, setting the option to |
Description
The general performance of Emacs gets very slow sometimes. This specifically happens with LaTeX and after opening the pdf and scrolling. The pattern is ambiguous. When it happens, it takes Emacs too much time to switch from window to window, scroll pdf, open or close the command buffer, etc.
Reproduction guide 🪲
Observed behaviour: 👀 💔
The slowness in response of Emacs
Expected behaviour: ❤️ 😄
Should be normal
System Info 💻
Backtrace 🐾
The text was updated successfully, but these errors were encountered: