-
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
Improving Performance #1114
Comments
Spacemacs shouldn't be slow other than maybe startup. If it is slow it is usually one specific laggy thing and not general cruft. What kind of slowness are you experiencing? When is it happening? |
If you are on |
Also, just to answer your specific question, |
I wonder what your performance problem is. Could you be more specific? |
I have a general lag after pretty much any input. Which is particularly noticeable after simple commands, like "j", "k" in normal mode and typing, backspace and ctrl+w in insert mode. ("j", "k" performance can be improved by turning off visual-line-mode, the clever word wrap thing. It also much faster when the cursor does not have to move horizontally, for example when scrolling through commented text and cursor stays on the first character in a line. But fast "j", "k" is not essential with all the other movement options.) |
You can disable the mode listed in the mode line with circled letter by pressing on |
"spc t a" did not make a noticeable difference. ps thanks for your help and spacemacs syl20bnr. |
This is actually a big deal for me as well. I get considerable |
System specs might help. OS? Emacs version? Where did you get your emacs? Is your computer old? Also scope statements and testing might help. Does this happen in multiple types of buffer, or just a certain language? What layers do you have installed? |
Happens in all buffers, even in fundamental mode. It gets worse over time. When I restart emacs it gets a bit snappier but only for a short while. Killing all buffers doesn't seem to help. I'm guessing some list is being accumulated and traversed over time and is called on every motion? That's my best guess... |
Is the Emacs you are using from Emacs Mac OS X? If so, you should upgrade to Emacs 24.5 since the "stable" version is not so stable. See this issue: #1184 |
I'm using the version recommended in the docs: https://github.com/syl20bnr/spacemacs#os-x |
I wonder whether this has something to do with this issue #1369 The performance issue I experienced was related to a |
I found this issue because I was coming to open a discussion about performance too. General text entry in More generally my concern is whether |
Make sure your |
How slow is slow? I opened a 300MB text file fine in |
@tuhdo These are hard discussions to have accurately. For a quick and dirty test can you open that same file in SublimeText and tell me if you can observe an improvement? Large one? |
If you want to open large file, be sure to disable smooth scrolling. It improves performance quite significant. |
@rphillips I updated that setting though not related to the performance I am talking about. |
How? |
I'd say text entry is indeed considerably slower than in |
I have no problem with Emacs. It scrolls fast, even with that 300MB text file. If you want a prorgramming file to test, My OS is Ubuntu on a 5400 rpm hard drive with a 5 years-old Windows.
Set |
I did see something like this awhile ago, and IIRC installing aspell from homebrew cleared it up for me. |
@jasonkuhrt What theme are you using ? On XQuartz on Yosemite I have poor performance with some themes like zenburn and some others, the display is slower in every way with these themes, I don't know why. Also what build and version of Emacs are your using ? I was impressed by |
@jasonkuhrt also do you have any similar performance issue with |
@syl20bnr indeed |
@x-ji good point about giving a reason. The real reason though is not just performance, it is better in every conceivable way. Better rendering, better perf, better OSX integration, better scrolling, better stability, ... |
@syl20bnr
|
@jasonkuhrt Indeed |
I'am experiencing problems even on |
FWIW, @rphillips recommended install aspell which seemed to fix the issue with me. Mac OS X, development branch. |
Nevermind, it's still slow :/ This is especially noticeable when editing ruby code. |
I found that |
Closing this now since this discussion has simmered down and it's really too general. You can open new issues for more specific performance problems if you find them. |
Changing the font from sans-mono to the fira-mono font fixed all my lag problems. It has something to do with that I guess. Thank the heavens. Remember to restart spacemacs as well. key words: spacemacs slow, performance, lag |
Just came across this myself. Fira Mono + disabling unicode made a massive difference. Should we perhaps mention this in the docstring in |
To reiterate on this, i have been using GNU Emacs 25 (head) on OSX, and the speed is much better than in the emacs-mac port. I suggest trying it out if someone has any perf problems with Spacemacs. Also, i have the latest OSX version and im not sure if the font is still an issue. I have been using CamingoCode and M+ fonts they all work as they should. Not sure about Source Code Pro though. |
Just my two cents, I found If I change the powerline-scale to 1.0 (maybe means don't do any scale in dotspacemacs/init will improve a lot of scrolling speed. seems the 1.1 scale is copy from default config. like
|
I can also confirm that deactivating linum-mode for every programming mode : |
@d12frosted Thank you for pointing out that |
FWIW, I've seen a similar issue in Vim when using unicode characters and different fonts. I believe the issue is related to whether or not a particular glyph is available in the currently-configured font. If it is, there's no speed impact. If it isn't, OS X does something to locate a fallback font and this process (or possibly the process of drawing the fallback) is slow. See my comment here for further details. edit: a major clue with the issue I saw in vim was that the |
I can confirm that changing |
I have tried:
and I still have horrible lag on my MBP :( Even entering numbers into the calculator there is about a 1 second delay. |
more info here: syl20bnr/spacemacs/issues/1114
more info here: syl20bnr/spacemacs/issues/1114
more info here: syl20bnr/spacemacs/issues/1114
more info here: syl20bnr/spacemacs/issues/1114
more info here: syl20bnr/spacemacs/issues/1114
I had major input lag for pretty much anything in Spacemacs. After trying many things I simply started disbling minor modes until I found out flycheck caused the slowness on my Windows installation. Hope this helps anyone. |
I had an almost unusable spacemacs for a while after opening ~10 buffers, although it would be really snappy right after startup with only one or two buffers open. This was enough of a problem that I contemplated switching to, and even spent a few hours building a config for, neovim. Does anyone have any insight into why this happens? |
The issue for me was with Simply toggling off |
Just to confirm, for me, it was |
Just as another point, my lag has gone after disabling |
I've been reading mail using the mu4e layer and I notice some messages are very slow to load. Before reading this thread I didn't notice what the slow messages have is common: Chinese characters. I wish there was a way to just turn off the unicode rendering since I don't speak Chinese I won't miss much. Of course it would be better if the rendering could be fast. |
This must be a common question, but I could not find an answer: how do I improve spacemacs performance?
I suspect I do not need or use most of the functionality, because I do not know about it.
Things like auto-completion, line-highlight, linum (whatever that is), smooth scrolling, spell check? In fact, I'd give up things that are useful just to speed things up.
Perhaps, someone could share their init file with all the fancy things disabled?
The text was updated successfully, but these errors were encountered: