diff options
| author | Spencer Baugh | 2025-05-01 14:27:30 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2025-05-23 21:41:14 -0400 |
| commit | e5218df144203ff1b5da3d46b7579b6455008ee7 (patch) | |
| tree | 6cc03eb8f47174497b065fd4748e04792c6e0042 /java | |
| parent | c8795767292caaaa3765ef6fffb12a7c0809d642 (diff) | |
| download | emacs-e5218df144203ff1b5da3d46b7579b6455008ee7.tar.gz emacs-e5218df144203ff1b5da3d46b7579b6455008ee7.zip | |
Add load-path-filter-function and use it to optimize loading
When there are many directories on load-path, the part of load which
searches load-path can become very slow. By filtering load-path up
front to only contain directories which are likely to contain the
searched-for file, load becomes much faster.
This can be set in early-init.el for maximum effect.
* lisp/startup.el (load-path-filter--cache)
(load-path-filter-cache-directory-files): Add.
* src/lread.c (Fload): Call load-path-filter-function.
(syms_of_lread): Add load-path-filter-function.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions