mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 06:58: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:
@@ -89,7 +89,7 @@ extern garray_T script_items;
|
||||
#define SCRIPT_ITEM(id) (((scriptitem_T **)script_items.ga_data)[(id) - 1])
|
||||
#define SCRIPT_ID_VALID(id) ((id) > 0 && (id) <= script_items.ga_len)
|
||||
|
||||
typedef void (*DoInRuntimepathCB)(char *, void *);
|
||||
typedef bool (*DoInRuntimepathCB)(int, char **, bool, void *);
|
||||
|
||||
typedef struct {
|
||||
char *path;
|
||||
|
Reference in New Issue
Block a user