From 932a7d5d413a6a504952ccb52b5fee4324b8f909 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Thu, 28 Aug 2025 09:14:54 -0400 Subject: [PATCH] Update GC config --- early-init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/early-init.el b/early-init.el index b2297d2..399b1f0 100644 --- a/early-init.el +++ b/early-init.el @@ -30,7 +30,7 @@ ;; Temporarily raise the garbage collection threshold to its maximum value. ;; It will be restored later to controlled values. -(setq gc-cons-threshold (- most-positive-fixnum 1)) +(setq gc-cons-threshold most-positive-fixnum) (setq gc-cons-percentage 1.0) ;;; Variables @@ -182,7 +182,7 @@ pre-early-init.el, and post-early-init.el.") ;; `gc-cons-threshold' is managed by minimal-emacs.d (add-hook 'emacs-startup-hook #'minimal-emacs--restore-gc 105) ;; gc-cons-threshold is not managed by minimal-emacs.d. - (when (= gc-cons-threshold (- most-positive-fixnum 1)) + (when (= gc-cons-threshold most-positive-fixnum) (setq gc-cons-threshold minimal-emacs--backup-gc-cons-threshold) (setq gc-cons-percentage minimal-emacs--backup-gc-cons-percentage)))