mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix: don't byte-compile profile init file
The performance benefit of doing so has always been questionable or, at best, negligible, but has caused numerous issues over the years. The latest one being #8162, where byte-compiling a profile init file with too many package autoloads would consume more than 255 opcodes, causing an overflow error. For simplicity's sake, Doom will no longer byte-compile this file. Fix: #8162
This commit is contained in:
@ -308,9 +308,7 @@ If RETURN-P, return the message as a string instead of displaying it."
|
||||
(doom-profile-init-file doom-profile)))
|
||||
;; If we loaded a compiled file, set `user-init-file' to the
|
||||
;; source version if that exists.
|
||||
(setq user-init-file
|
||||
(concat (string-remove-suffix ".elc" init-file-name)
|
||||
".el"))
|
||||
(setq user-init-file init-file-name)
|
||||
;; HACK: if `init-file-name' happens to be higher in
|
||||
;; `load-history' than a symbol's actual definition,
|
||||
;; `symbol-file' (and help/helpful buffers) will report the
|
||||
|
Reference in New Issue
Block a user