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
Muhammad Nauman Raza bcb6f7a1a3
feat: which-key
2022-11-08 17:53:07 +00:00

13 lines
368 B
EmacsLisp

;;; This file improves the performance of Emacs, startup or otherwise
;; 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))))
;; Provide this file to init.el
(provide 'performance)