Add gcmh package to manage the valoue of gc-cons-threshold.

This commit is contained in:
kj 2022-06-09 04:14:23 -04:00
parent 93bee419e8
commit b7873f48de
2 changed files with 8 additions and 1 deletions

View File

@ -89,6 +89,13 @@
:hook :hook
(after-init . global-git-gutter-mode)) (after-init . global-git-gutter-mode))
(use-package gcmh
:defer t
:straight t
:init
(setq gcmh-high-cons-threshold 100000000)
(gcmh-mode 1))
;; Highlight en los números. ;; Highlight en los números.
;; (use-package highlight-numbers ;; (use-package highlight-numbers
;; :defer t ;; :defer t

View File

@ -31,7 +31,7 @@
(add-hook 'emacs-startup-hook (add-hook 'emacs-startup-hook
(lambda () (lambda ()
"Recover GC values after startup." "Recover GC values after startup."
(setq gc-cons-threshold 100000000 (setq gc-cons-threshold 800000
gc-cons-percentage 0.1))) gc-cons-percentage 0.1)))
;; Cargar configuraciones ;; Cargar configuraciones