Re:Ask HN: If you were rewriting Emacs from scratch, what wo...
by arghnoname on Saturday October 12, 2024 @06:27PM
(#41823267)
Emacs pauses are almost always due to some operation blocking in the main thread. It's pretty annoying and is mostly a consequence to a lot of things effectively being single-threaded. Stock emacs doesn't do this very often, but third party packages that might do expensive tasks often do
[ Parent
| on HN ]
Re:Ask HN: If you were rewriting Emacs from scratch, what wo...
by lysace on Saturday October 12, 2024 @06:30PM
(#41823282)
Ah. A case of "don't do that, then".
Re:Ask HN: If you were rewriting Emacs from scratch, what wo...
by iLemming on Monday October 14, 2024 @12:10AM
(#41834090)
a) Build it with native-compilation flag
b) Use https://github.com/blahgeek/emacs-lsp-booster
c) Tweak GC vars, see: https://emacs-lsp.github.io/lsp-mode/page/performance/
d) Use plists for deserialization (described in the previous link)
e) Learn how to use built-in profiler and don't hesitate to launch it, sometimes simply disabling some minor-mode in specific setting is all it takes
f) Current state of Tree-sitter in Emacs is a mixed bag - for some modes you get huge improvements, for others it's the opposite. YMMV.