Hard code gc-cons-threshold in early-init.el
In the interest of DRY-ness, I avoid redefining `doom-gc-cons-upper-limit`. This value is likely to diverge from the default value of `doom-gc-cons-upper-limit` in the future anyway.
This commit is contained in:
parent
fae47fc448
commit
a9b4fe2960
|
@ -3,11 +3,8 @@
|
||||||
;; Emacs HEAD (27+) introduces early-init.el, which is run before init.el,
|
;; Emacs HEAD (27+) introduces early-init.el, which is run before init.el,
|
||||||
;; before package and UI initialization happens.
|
;; before package and UI initialization happens.
|
||||||
|
|
||||||
|
;; Defer garbage collection further back in the startup process
|
||||||
(defconst doom-gc-cons-upper-limit 268435456 ; 256mb
|
(setq gc-cons-threshold 268435456)
|
||||||
"The temporary value for `gc-cons-threshold' to defer it.")
|
|
||||||
;; This reduces gcs-done from 4 to 1 on startup
|
|
||||||
(setq gc-cons-threshold doom-gc-cons-upper-limit)
|
|
||||||
|
|
||||||
;; Package initialize occurs automatically, before `user-init-file' is
|
;; Package initialize occurs automatically, before `user-init-file' is
|
||||||
;; loaded, but after `early-init-file'. Doom handles package
|
;; loaded, but after `early-init-file'. Doom handles package
|
||||||
|
|
Loading…
Reference in New Issue
Block a user