mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
perf(rtp): reduce rtp scans (#24191)
* perf(rtp): reduce rtp scans Problem: Scanning the filesystem is expensive and particularly affects startuptime. Solution: Reduce the amount of redundant directory scans by relying less on glob patterns and handle vim and lua sourcing lower down.
This commit is contained in:
@@ -2036,10 +2036,8 @@ static void do_spelllang_source(win_T *win)
|
||||
}
|
||||
}
|
||||
if (p > q) {
|
||||
vim_snprintf(fname, sizeof(fname), "spell/%.*s.vim", (int)(p - q), q);
|
||||
source_runtime(fname, DIP_ALL);
|
||||
vim_snprintf(fname, sizeof(fname), "spell/%.*s.lua", (int)(p - q), q);
|
||||
source_runtime(fname, DIP_ALL);
|
||||
vim_snprintf(fname, sizeof(fname), "spell/%.*s.*", (int)(p - q), q);
|
||||
source_runtime_vim_lua(fname, DIP_ALL);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user