From 3e5cf3de097c9c495dd789475fa346017c106f92 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 25 May 2020 02:10:07 -0400 Subject: [PATCH] Simplify gcmh config We don't need to manipulate gc-cons-percentage. The GC never procs at startup either way. --- core/core.el | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/core/core.el b/core/core.el index 25d00afc9..6e180f89b 100644 --- a/core/core.el +++ b/core/core.el @@ -308,12 +308,8 @@ users).") ;; Adopt a sneaky garbage collection strategy of waiting until idle time to ;; collect; staving off the collector while the user is working. (setq gcmh-idle-delay 5 - gcmh-high-cons-threshold 16777216 ; 16mb - gcmh-verbose doom-debug-mode - gc-cons-percentage 0.6) -(with-eval-after-load 'gcmh - ;; But restore this later, otherwise we risk freezing and stuttering! - (setq gc-cons-percentage 0.1)) + gcmh-high-cons-threshold (* 16 1024 1024) ; 16mb + gcmh-verbose doom-debug-mode) ;; HACK `tty-run-terminal-initialization' is *tremendously* slow for some ;; reason. Disabling it completely could have many side-effects, so we