Last active
August 3, 2019 06:00
-
-
Save garaemon/8851900ef27d8cb28200ac8d92ebacdf to your computer and use it in GitHub Desktop.
emacsのGCのしきい値を増やし, 入力がないときにGCを走らせる
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Increase threshold to fire garbage collection | |
(setq gc-cons-threshold 1073741824) | |
(setq garbage-collection-messages t) | |
;; Run GC every 60 seconds if emacs is idle. | |
(run-with-idle-timer 60.0 t #'garbage-collect) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment