Update GC for faster startup time

This commit is contained in:
Maciej 2020-08-31 14:56:31 +03:00
parent 15cc975416
commit 341a2b0ee7
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
2 changed files with 8 additions and 4 deletions

View file

@ -10,9 +10,6 @@
;;; Code:
;;;;;;;;; GC configuration ;;;;;;;;;;;;;;;;;;;
(setq gc-cons-threshold 50000000)
;;;;;;;; Other optimizations ;;;;;;;;;;;;;;;;;
;;;;;;;; Stolen from Doom Emacs. ;;;;;;;;;;;;;

View file

@ -2,6 +2,10 @@
;;; Commentary:
;;; Code:
;; list the repositories containing them
;; Set GC at 300 MB for startup
(setq gc-cons-threshold 300000000)
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")))
@ -13,7 +17,7 @@
;; install use-package, the workhorse of configuration
(unless (package-installed-p 'use-package)
(package-install 'use-package))
(package-install 'use-package))
(require 'use-package)
@ -73,5 +77,8 @@
'(font-lock-type-face ((t (:foreground "#ffcb6b" :family "IBM Plex Mono"))))
'(markdown-code-face ((t (:inherit fixed-pitch :family "IBM Plex Mono")))))
;; Restore GC to normal, but still high
(setq gc-cons-threshold 100000000)
(provide 'init)
;;; init.el ends here