mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-27 02:26:14 +01:00
9ee6c651be
Signed-off-by: magic_rb <magic_rb@redalder.org>
1 KiB
1 KiB
Performance
Increase the amount of data Emacs reads from a process in one go, default is 4KB, but some LSP servers produce responses up to 24MB.
(when (boundp 'read-process-output-max)
(setq ; process-adaptive-read-buffering nil
read-process-output-max (* 24 1024 1024)))
Increase GC threshold to avoid random freezes on garbage collection.
(setq gc-cons-threshold (* 1024 1024 256))
Set the minimum delay between LSP refreshes, should help with performance when typing really fast.
(setq lsp-idle-delay 0.250)
Skip fontification on input, mostly helps with scrolling when Emacs cannot keep up withe fontification.
(setq redisplay-skip-fontification-on-input t)