Update GC for faster startup time
This commit is contained in:
parent
15cc975416
commit
341a2b0ee7
2 changed files with 8 additions and 4 deletions
|
|
@ -10,9 +10,6 @@
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
;;;;;;;;; GC configuration ;;;;;;;;;;;;;;;;;;;
|
|
||||||
(setq gc-cons-threshold 50000000)
|
|
||||||
|
|
||||||
;;;;;;;; Other optimizations ;;;;;;;;;;;;;;;;;
|
;;;;;;;; Other optimizations ;;;;;;;;;;;;;;;;;
|
||||||
;;;;;;;; Stolen from Doom Emacs. ;;;;;;;;;;;;;
|
;;;;;;;; Stolen from Doom Emacs. ;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
|
|
||||||
7
init.el
7
init.el
|
|
@ -2,6 +2,10 @@
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
;;; Code:
|
;;; Code:
|
||||||
;; list the repositories containing them
|
;; 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/")
|
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
|
||||||
("melpa" . "https://melpa.org/packages/")))
|
("melpa" . "https://melpa.org/packages/")))
|
||||||
|
|
||||||
|
|
@ -73,5 +77,8 @@
|
||||||
'(font-lock-type-face ((t (:foreground "#ffcb6b" :family "IBM Plex Mono"))))
|
'(font-lock-type-face ((t (:foreground "#ffcb6b" :family "IBM Plex Mono"))))
|
||||||
'(markdown-code-face ((t (:inherit fixed-pitch :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)
|
(provide 'init)
|
||||||
;;; init.el ends here
|
;;; init.el ends here
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue