diff --git a/early-init.el b/early-init.el index c2c4a4a91..8beec8fb5 100644 --- a/early-init.el +++ b/early-init.el @@ -3,6 +3,12 @@ ;; Emacs HEAD (27+) introduces early-init.el, which is run before init.el, ;; before package and UI initialization happens. + +(defconst doom-gc-cons-upper-limit 268435456 ; 256mb + "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 ;; loaded, but after `early-init-file'. Doom handles package ;; initialization, so we must prevent Emacs from doing it early!