3 ms·
Can I please keep all my Emacs workflow and packages but have something faster? Please?
by yewenjie 5y ago
Can I please keep all my Emacs workflow and packages but have something faster? Please?
- db48x 5y agoIf your Emacs is slow then there is probably something wrong with your config that can be fixed. When do you notice it being slow?
- ashton314 5y agoAre you on Emacs 28? Native-comp is enabled by default and it's Just Worked™ for me. Or are you on at least Emacs 27? Emacs 27 added native JSON parsing; stuff like lsp-mode works a lot better now. (Personally running Emacs 29 built from source on an M1 Pro; everything is instant! Even on my old dumpy i5 machine, everything except startup was pretty snappy, with the exception of startup which took ~4 seconds.) If it's startup you're concerned about, try the esup[1] package to figure out what's taking so long. [1]: https://github.com/jschaf/esup https://github.com/jschaf/esup
- oefrha 5y agoJust use a persistent Emacs server and forget about startup profiling.
- yewenjie 5y agoI am on latest Emacs master with native-comp enabled on a i7 32GB machine. While generally it is fast, it is not fast enough for me for things like editing with LSP enabled. After like an hour of LSP mode on, it becomes jarring and I need to restart it.
- worthless-trash 5y agoGive the feedback to your language server processor, probably not an emacs bug.. might be.. but i think you need to measure, you might be blaming your editor when its not.
- patrick451 5y agoI use to have this problem as well. It turns out that I had set (setq lsp-print-io t) while debugging a configuration problem. That setting was basically filling up a buffer with _enormous_ amounts of text. I guess that appending frequently to that massive buffer slowed things to a halt. After disabling this, LSP inside emacs has been flawless.
- accelbred 5y agoHave you tried using the gcmh package? I'd gotten emacs 28 snappy and without performance issues on my desktop, but laptop was still laggy; gcmh with auto set fixed it for me.