aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshton Wiersdorf <mail@wiersdorf.dev>2024-09-05 21:36:47 -0600
committerAshton Wiersdorf <mail@wiersdorf.dev>2024-09-05 21:36:47 -0600
commitd5fdfccde56cb7e15478763f8ff07448b3889fae (patch)
tree9e1f1686dee164438168d8d4d349bf50c7dcdb64
parentf17a4b4d5116ac7eec3b30a0d43fa46eb074da0b (diff)
Revert GC threshold after startup
-rw-r--r--early-init.el1
-rw-r--r--init.el2
2 files changed, 3 insertions, 0 deletions
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))