-
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
Spacemacs is slow in moving cursor continuously in a big file #8905
Comments
It is smooth for me. Sounds like you may need a performance upgrade for your computer. |
Not really. My computer's CPU is Intel Core i7 6700, with 16GB of RAM. |
You could profile emacs to figure out which functions eats up most performance. And then selectivly deactivate stuff or optimize their behaviour. |
Also keep in mind that Spacemacs can only optimize load time performance. The individual package owners control the preformace of their code. Therefore if a package or combination of packages are slowing you down, then there is not much Spacemacs can do. You can either disable packages or live with the preformace. @scriptmode's suggestion about profiling may be a good idea if you are looking for packages to disable. But you may just want to start with removing the packages and minor-modes you use the least. |
On another note, if you ever dealing with really large files (over 10,000 lines) you should consider vlf-mode |
@scriptmode, @CeleritasCelery: Thanks for your suggestions. These sound really logical. I will monitor my Emacs's performance. |
Hi, just a follow-up question. I profiled the CPU usage and found out that the CPU consumption for In addition, the CPU usage of
|
|
I encountered similar problem, but the file I was editing is small (less than 50 lines). |
@zeka0 The problem is probably "running Spacemacs on a virtual machine consisting of only 2G ram with 4 threads 2 core CPU". You can take the advice mentioned above if you want to improve performance. |
I am new to Emacs, and am not familiar with the profiler. Could you tell me how you did this?
This doesn't seem to do anything. |
https://www.gnu.org/software/emacs/manual/html_node/elisp/Profiling.html |
Thanks, that helps. |
Mine is worse |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
I certainly experience a lot of lag when using either the spaceline or doom mode lines on MacOS - but only if running as a GUI, not if I use it in a terminal, in a terminal it flies along, but I lack the benefits then of the GUI mode. In the reading that I've done this appears to be mainly down to the font rendering - suggestions that I've looked at has been to disable unicode characters and pick some specific fonts - some had minor benefits, but nothing reduced the lag as much as switching to the 'vanilla' mode line. While not as pretty, it certainly helps for usability to avoid the lag. |
Hi, |
@darrenkenny |
@lebensterben Could you elaborate on this a bit more; I understand that I could start a server with emacs-gui with |
@fab6 |
ok, thank you very much! I will check you I can get it to run with macos.. it seems that that the gui is not started from iterm, but the terminal emacs version. |
and it looks actually here https://emacs.stackexchange.com/questions/18507/os-x-and-daemon-mode that this is not so easy to get the middle ground running on macos... |
@fab6 |
@lebensterben yes, that would not be the problem but I understood this part |
Best solution is to use Linux. bugOS is hard to use. |
yes, that's right... |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
Hi,
I notice that when using the arrow keys to move the cursor continuously in a big file, such as
.emacs.d/core/core-configuration-layer.el
, the cursor movement often lags and is not smooth.My guess is that during the cursor moving, there are some computations corresponding to the new cursor position, such as displaying eldoc, flycheck, flyspell... As the cursor continuously moves to a new position, these computations are performed again and again and this makes the cursor moving unsmooth.
Are there any ways to make the continuous cursor moving smooth?
If my guess is correct, is it possible to temporarily disable the events update during a continuous cursor moving?
Thanks for spending your time to look at my question!
The text was updated successfully, but these errors were encountered: