From 6e7a17b6e004d231b2e84551c7983562109f4497 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 30 Mar 2021 17:22:49 -0500 Subject: Tweak garbage collection --- early-init.el | 3 ++- lisp/acdw.el | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/early-init.el b/early-init.el index 2a6e068..ad1d856 100644 --- a/early-init.el +++ b/early-init.el @@ -32,7 +32,8 @@ after init.") (setq file-name-handler-alist nil) -(acdw/gc-disable) +(setq gc-cons-threshold (* 800 1024 1024) + gc-cons-percentage 0.6) (add-hook 'after-init-hook (defun hook--post-init-reset () diff --git a/lisp/acdw.el b/lisp/acdw.el index 9387cf1..35d5ac1 100644 --- a/lisp/acdw.el +++ b/lisp/acdw.el @@ -57,7 +57,7 @@ Ready for use with `after-focus-change-function'." ;;; Garbage collection hacks -(defconst acdw/gc-cons-threshold-basis (* 800 1024 1024) +(defconst acdw/gc-cons-threshold-basis (* 800 1024) "Basis value for `gc-cons-threshold' to return to after jumping. 800 KB is Emacs's default.") -- cgit 1.4.1-21-gabe81