perf: inhibit display-startup-screen

This commit is contained in:
Henrik Lissner 2022-09-26 12:32:30 +02:00
parent 5bfe0ba53f
commit fbe94ba9f2
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -361,6 +361,11 @@ users).")
;; PERF,UX: Remove "For information about GNU Emacs..." message at startup. ;; PERF,UX: Remove "For information about GNU Emacs..." message at startup.
;; It's redundant with our dashboard and incurs a premature redraw. ;; It's redundant with our dashboard and incurs a premature redraw.
(advice-add #'display-startup-echo-area-message :override #'ignore) (advice-add #'display-startup-echo-area-message :override #'ignore)
;; PERF: Suppress the vanilla startup screen completely. We've disabled it
;; with `inhibit-startup-screen', but it would still initialize anyway.
;; This involves some file IO and/or bitmap work (depending on the frame
;; type) that we can no-op for a free 50-100ms boost in startup time.
(advice-add #'display-startup-screen :override #'ignore)
;; PERF: Shave seconds off startup time by starting the scratch buffer in ;; PERF: Shave seconds off startup time by starting the scratch buffer in
;; `fundamental-mode', rather than, say, `org-mode' or `text-mode', which ;; `fundamental-mode', rather than, say, `org-mode' or `text-mode', which