From 6c01d1a5acda57ca4ca5a96db9e3a002d9d96bf6 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 11 May 2020 00:16:17 -0400 Subject: [PATCH] Increase read-process-output-max for robe-mode It appears robe, like LSP, is very chatty, which can slow down Emacs. --- modules/lang/ruby/config.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/lang/ruby/config.el b/modules/lang/ruby/config.el index 125891497..ebd431c7f 100644 --- a/modules/lang/ruby/config.el +++ b/modules/lang/ruby/config.el @@ -50,6 +50,11 @@ (set-lookup-handlers! 'ruby-mode :definition #'robe-jump :documentation #'robe-doc) + (when (boundp 'read-process-output-max) + ;; Robe can over saturate IPC, making interacting with it slow/clobbering + ;; the GC, so increase the amount of data Emacs reads from it at a time. + (setq-hook! '(robe-mode-hook inf-ruby-mode-hook) + read-process-output-max (* 1024 1024))) (when (featurep! :editor evil) (add-hook 'robe-mode-hook #'evil-normalize-keymaps)) (map! :localleader