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:
|
||||
|
||||
;;;;;;;;; GC configuration ;;;;;;;;;;;;;;;;;;;
|
||||
(setq gc-cons-threshold 50000000)
|
||||
|
||||
;;;;;;;; Other optimizations ;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;; Stolen from Doom Emacs. ;;;;;;;;;;;;;
|
||||
|
||||
|
|
|
|||
9
init.el
9
init.el
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue