Skip to content

Commit

Permalink
my-libs: bump up GC cache
Browse files Browse the repository at this point in the history
2Mb is more than the default but not so much it takes too long to
clean-up during garbage collection.
  • Loading branch information
stsquad committed Dec 22, 2023
1 parent 1c995b8 commit cf0362a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion my-libs.el
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@
(use-package async
:ensure t)

;; Up GC threshold from 800k to 2Mb
(use-package emacs-gc-stats
:ensure t
:config (setq gc-cons-threshold 100000000)
:config (setq gc-cons-threshold (* 2 1024 1024))
:init (emacs-gc-stats-mode))

;; Other helpers
Expand Down

0 comments on commit cf0362a

Please sign in to comment.