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:
Muhammad Nauman Raza 2022-11-20 16:59:50 +00:00
parent aab03a5383
commit 35fac3eff9
No known key found for this signature in database
GPG key ID: A9A36C429C9CAE31
2 changed files with 3 additions and 13 deletions

View file

@ -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

View file

@ -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