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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue