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

@ -722,6 +722,11 @@ original state.")
if (string-match-p prompt-re prompt)
return (string-match-p opt-re option)))
(defadvice! doom-cli--straight-no-compute-prefixes-a (fn &rest args)
:around #'straight--build-autoloads
(let (autoload-compute-prefixes)
(apply fn args)))
(defadvice! doom-cli--straight-fallback-to-tty-prompt-a (fn prompt actions)
"Modifies straight to prompt on the terminal when in noninteractive sessions."
:around #'straight--popup-raw