;; set native compilation cache directory (startup-redirect-eln-cache (convert-standard-filename (expand-file-name "~/.cache/emacs/eln-cache/"))) ;; performance tuning ;; set as recommended at https://emacs-lsp.github.io/lsp-mode/page/performance/ (setq gc-cons-threshold 100000000) (setq read-process-output-max (* 1024 1024)) ;; 1mb (setenv "LSP_USE_PLISTS" "true") (setq lsp-idle-delay 0.500) (setq lsp-log-io nil) ; if set to true can cause a performance hit