From d5fdfccde56cb7e15478763f8ff07448b3889fae Mon Sep 17 00:00:00 2001 From: Ashton Wiersdorf Date: Thu, 5 Sep 2024 21:36:47 -0600 Subject: Revert GC threshold after startup --- early-init.el | 1 + init.el | 2 ++ 2 files changed, 3 insertions(+) diff --git a/early-init.el b/early-init.el index 8bd3ddb..9782b87 100644 --- a/early-init.el +++ b/early-init.el @@ -16,6 +16,7 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Startup speed, annoyance suppression +(setq bedrock--initial-gc-threshold gc-cons-threshold) (setq gc-cons-threshold 10000000) (setq byte-compile-warnings '(not obsolete)) (setq warning-suppress-log-types '((comp) (bytecomp))) diff --git a/init.el b/init.el index 78dd81e..cba11c8 100644 --- a/init.el +++ b/init.el @@ -252,3 +252,5 @@ If the new path's directories does not exist, create them." ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) + +(setq gc-cons-threshold (or bedrock--initial-gc-threshold 800000)) -- cgit v1.2.3