Simplify gcmh config

We don't need to manipulate gc-cons-percentage. The GC never procs at
startup either way.
This commit is contained in:
Henrik Lissner 2020-05-25 02:10:07 -04:00
parent 09c6e99e23
commit 3e5cf3de09
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -308,12 +308,8 @@ users).")
;; Adopt a sneaky garbage collection strategy of waiting until idle time to ;; Adopt a sneaky garbage collection strategy of waiting until idle time to
;; collect; staving off the collector while the user is working. ;; collect; staving off the collector while the user is working.
(setq gcmh-idle-delay 5 (setq gcmh-idle-delay 5
gcmh-high-cons-threshold 16777216 ; 16mb gcmh-high-cons-threshold (* 16 1024 1024) ; 16mb
gcmh-verbose doom-debug-mode 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))
;; HACK `tty-run-terminal-initialization' is *tremendously* slow for some ;; HACK `tty-run-terminal-initialization' is *tremendously* slow for some
;; reason. Disabling it completely could have many side-effects, so we ;; reason. Disabling it completely could have many side-effects, so we