Run emacs garbage collection when idle.

This is to hopefully avoid running garbage collection while I am actively interacting with emacs, which should theoretically result in a smoother experience.
This commit is contained in:
Tom Alexander
2024-01-26 21:21:09 -05:00
parent 574a2d0ce7
commit ed7d4ab4e6
4 changed files with 15 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
(setq gc-cons-threshold 100000000) ;; Increase garbage collection threshold for performance (default 800000)
(setq gc-cons-threshold (* 128 1024 1024)) ;; Increase garbage collection threshold for performance (default 800000)
;; Increase amount of data read from processes, default 4k
(when (>= emacs-major-version 27)
(when (version<= "27.0" emacs-version)
(setq read-process-output-max (* 1024 1024)) ;; 1mb
)