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 f95e050832
chore(docs): add elisp documentation for each file
Apparently this is customary for Emacs configuration files. Doom seems
to do this too, so here it is.
2022-11-16 21:10:34 +00:00

18 lines
561 B
EmacsLisp

;;; 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:
;; 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