summary refs log tree commit diff
path: root/early-init.el
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-04-28 14:30:04 -0700
committerFranck Cuny <franck@fcuny.net>2024-04-28 14:30:04 -0700
commit0e162763b310a8135b3b732ad9a01977c704c3e3 (patch)
tree14efaa064445ca46b399c4315db34e9314477466 /early-init.el
parentremove unused white space (diff)
downloademacs.d-0e162763b310a8135b3b732ad9a01977c704c3e3.tar.gz
install eldoc-box and tune GC settings
Diffstat (limited to 'early-init.el')
-rw-r--r--early-init.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/early-init.el b/early-init.el
index 870eb01..4568e74 100644
--- a/early-init.el
+++ b/early-init.el
@@ -28,7 +28,9 @@
  'emacs-startup-hook
  (lambda (&rest _)
    (setq garbage-collection-messages t) ;; log when the gc kicks in
-   (setq gc-cons-threshold 16777216)    ;; 16mb
-   (setq gc-cons-percentage 0.1)))
+   ;; Make gc pauses faster by decreasing the threshold.
+   (setq gc-cons-threshold (* 2 1000 1000))
+   ;; Portion of heap used for allocation.  Defaults to 0.1.
+   (setq gc-cons-percentage 0.6)))
 
 ;;; early-init.el ends here