mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-15 13:23:42 -05:00
perf: disable autoload-compute-prefixes & optimize var cache
- Batch more variables in Doom's autoloads files. - Remove all the register-definition-prefixes calls generated in autoloads files (for both modules' and packages' autoloads). These don't serve much purpose, and only incur added cost growing a large hash table.
This commit is contained in:
@@ -362,10 +362,6 @@ Defaults to the profile at `doom-profile-default'."
|
||||
(signal 'doom-autoload-error (list init-file e))))))
|
||||
|
||||
(defun doom-profile--generate-init-vars ()
|
||||
(setq doom-autoloads-cached-vars '(load-path
|
||||
Info-directory-list
|
||||
auto-mode-alist
|
||||
interpreter-mode-alist))
|
||||
(let ((v (version-to-list doom-version))
|
||||
(ref (doom-call-process "git" "-C" (doom-path doom-emacs-dir) "rev-parse" "HEAD"))
|
||||
(branch (doom-call-process "git" "-C" (doom-path doom-emacs-dir) "branch" "--show-current")))
|
||||
|
Reference in New Issue
Block a user