3 ms·
Is the LSP architecture the way to go, though? In my experience it's quite a bit slower than built in emacs modes. I can't use tools that are slower than me.
by globular-toast 6y ago
Is the LSP architecture the way to go, though? In my experience it's quite a bit slower than built in emacs modes. I can't use tools that are slower than me.
- bananaface 6y agoAre you on Emacs 27 yet? Below that Emacs encodes JSON in Elisp, which is extremely slow and makes LSP unusable.
- globular-toast 6y agoUpgrading to 27 made no difference for me.
- bananaface 6y agoIn that case something dramatic is eclipsing it, it should be noticeable. It may be the GC threshold. There's about 5 settings recommended for perf issues. https://emacs-lsp.github.io/lsp-mode/page/performance/ https://emacs-lsp.github.io/lsp-mode/page/performance/ Ordinarily I'd ignore rabbit holes like this but LSP is unusually useful. It's worth a shot.
- globular-toast 6y agoI've done all of that. Still slow. I think the problem is other people have lower standards than I do when it comes to speed.
- JacksonGariety 6y agoThere's a command called M-x lsp-doctor that will tell you if you meet all the performance requirements for LSP mode. Among those is emacs 27 compiled with native json support (you can build emacs 27 without native json).
- elevader 6y agoMaybe, but at the same time it seems like the best option for general language support in emacs. A lot of languages have working lsp implementations (at least according to https://langserver.org/ https://langserver.org/) and, assuming it will stick around, this means that emacs can get all of these nice features "for free" by having an lsp implementation. This is a much safer bet than just assuming that somebody will provide and maintain emacs plugins for <insert language x here> that provide everything that lsp would.