From 796cb7112cd7e71b21d3fbec21ad11a7dd085fa0 Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Thu, 19 Sep 2024 14:23:53 -0700 Subject: [PATCH] Max out GC threshold during startup --- thoom-emacs/early-init.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/thoom-emacs/early-init.el b/thoom-emacs/early-init.el index 384d208..1296010 100644 --- a/thoom-emacs/early-init.el +++ b/thoom-emacs/early-init.el @@ -1,2 +1,8 @@ ;; Disable package.el in favor of straight.el (setq package-enable-at-startup nil) + +(setq gc-cons-threshold most-positive-fixnum) + +(add-hook 'emacs-startup-hook + (lambda () + (setq gc-cons-threshold (* 16 1024 1024))))