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:
Henrik Lissner 2022-09-20 01:43:33 +02:00
parent 16469f1f9d
commit 024048dd5e
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
3 changed files with 9 additions and 8 deletions

View file

@ -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")))