Merge pull request #899 from edwintorok/emacs27

Emacs27+: reduce number of GCs on startup from 4 to 1
This commit is contained in:
Henrik Lissner 2018-09-19 18:14:40 -04:00 committed by GitHub
commit 6e2ee7052d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,9 @@
;; 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
(setq gc-cons-threshold 268435456)
;; 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
;; initialization, so we must prevent Emacs from doing it early! ;; initialization, so we must prevent Emacs from doing it early!