diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-03-31 13:05:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-31 13:05:22 +0100 |
commit | 83bfd94d1df5eecb8e4069a227c7d24598636d63 (patch) | |
tree | 14ef711cf4f158f48bfc83473e024b62f6f74da7 /src/nvim/lua/stdlib.c | |
parent | b34097fe6d2ea5c84bcec65a834a430d9f58eb64 (diff) | |
download | rneovim-83bfd94d1df5eecb8e4069a227c7d24598636d63.tar.gz rneovim-83bfd94d1df5eecb8e4069a227c7d24598636d63.tar.bz2 rneovim-83bfd94d1df5eecb8e4069a227c7d24598636d63.zip |
refactor(loader): cache hash information
Whenever we run fs_stat() on a path, save this information in the loader
so it can be re-used.
- Loader.loadfile: Remove arguments `hash` as it is no longer needed.
- Loader.loader: Use _G.loadstring instead of Loader.load
This allows plugins to wrap loadstring to inspection and profiling
- factor out read file logic
Diffstat (limited to 'src/nvim/lua/stdlib.c')
0 files changed, 0 insertions, 0 deletions