nit: mention file-name-handler-alist optimization in lisp/doom.el

This commit is contained in:
Henrik Lissner 2022-09-17 14:19:46 +02:00
parent 36a9637e79
commit 1a6524cecc
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -42,7 +42,8 @@
(or (or
;; PERF: `file-name-handler-alist' is consulted often. Unsetting it offers a ;; PERF: `file-name-handler-alist' is consulted often. Unsetting it offers a
;; notable saving in startup time. ;; notable saving in startup time. This let-binding is just a stopgap though,
;; a more complete version of this optimization can be found in lisp/doom.el.
(let (file-name-handler-alist) (let (file-name-handler-alist)
;; FIX: If this file was loaded via -batch or bin/doom, then ;; FIX: If this file was loaded via -batch or bin/doom, then
;; `user-emacs-directory' won't be set. As a starting point, let's assume ;; `user-emacs-directory' won't be set. As a starting point, let's assume