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:
Henrik Lissner 2018-09-19 18:14:01 -04:00 committed by GitHub
parent fae47fc448
commit a9b4fe2960
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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