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:
parent
16469f1f9d
commit
024048dd5e
3 changed files with 9 additions and 8 deletions
|
@ -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")))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue