Skip to content

Instantly share code, notes, and snippets.

@garaemon
Last active August 3, 2019 06:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garaemon/8851900ef27d8cb28200ac8d92ebacdf to your computer and use it in GitHub Desktop.
Save garaemon/8851900ef27d8cb28200ac8d92ebacdf to your computer and use it in GitHub Desktop.
emacsのGCのしきい値を増やし, 入力がないときにGCを走らせる
;; 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