This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
dianciemacs/lisp/performance.el

10 lines
311 B
EmacsLisp
Raw Normal View History

;; This file improves the performance of Emacs, startup or otherwise
2022-11-08 17:53:07 +00:00
;; Reduce garbage collection at startup
(setq gc-cons-threshold most-positive-fixnum)
;; Lower threshold back to 8 MiB (default is 800kB)
(add-hook 'emacs-startup-hook
(lambda ()
(setq gc-cons-threshold (expt 2 23))))