commit 969610103affa893e4b5dd46eea2909966a8e77d from: Lukas Henkel date: Thu Jul 15 18:09:32 2021 UTC Fix GC disabling code otherwise GC is always turned off, now it gets turned on on startup again commit - 6d0d58e98e287e559aac5b5560f3b8cf6d55dcf0 commit + 969610103affa893e4b5dd46eea2909966a8e77d blob - 2dd61291c688f4dcdff704bb56608aa375e0c6a0 blob + caae88a9d1c7577bc2fa77fbb860d7c437ff2b95 --- early-init.el +++ early-init.el @@ -1,2 +1,7 @@ +; Disable GC while starting up +(setq startup/gc-cons-threshold gc-cons-threshold) (setq gc-cons-threshold most-positive-fixnum) +(defun startup/reset-gc () + (setq gc-cons-threshold startup/gc-cons-threshold)) +(add-hook 'emacs-startup-hook 'startup/reset-gc) (setq package-enable-at-startup nil)