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

18 lines
561 B
EmacsLisp
Raw Normal View History

;;; lisp/performance.el --- Performance improvements for Emacs -*- lexical-binding: t; -*-
;;; Commentary:
;;
;; Emacs is widely known to be one of the slower editors - despite the
;; great 'native compilation' or the daemon-client relationship. So that needs to change too.
;;
;;; Code:
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))))
;;; performance.el ends here