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:
parent
09c6e99e23
commit
3e5cf3de09
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue