perf: relax garbage collection at start of init
Garbage collection is now relaxed at startup, decreasing startup time by around ~0.75 seconds. Deleted lisp/performance.el as no longer needed.
This commit is contained in:
parent
aab03a5383
commit
35fac3eff9
4
init.el
4
init.el
|
@ -7,6 +7,9 @@
|
||||||
;;
|
;;
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
|
;; Increase the threshold - performance
|
||||||
|
(setq gc-cons-threshold (* 50 1000 1000))
|
||||||
|
|
||||||
;; Disable Emacs' GTK decorations. Done in this file otherwise done too late.
|
;; Disable Emacs' GTK decorations. Done in this file otherwise done too late.
|
||||||
(tool-bar-mode -1)
|
(tool-bar-mode -1)
|
||||||
(scroll-bar-mode -1)
|
(scroll-bar-mode -1)
|
||||||
|
@ -47,7 +50,6 @@
|
||||||
(load "editor")
|
(load "editor")
|
||||||
(load "org-mode")
|
(load "org-mode")
|
||||||
(load "keybinds")
|
(load "keybinds")
|
||||||
(load "performance")
|
|
||||||
(load "languages")
|
(load "languages")
|
||||||
|
|
||||||
;; Load user configuration
|
;; Load user configuration
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
;;; 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:
|
|
||||||
|
|
||||||
;; Increase the threshold
|
|
||||||
(setq gc-cons-threshold (* 50 1000 1000))
|
|
||||||
|
|
||||||
;;; performance.el ends here
|
|
Reference in a new issue