aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/stdlib.c
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2023-03-31 13:05:22 +0100
committerGitHub <noreply@github.com>2023-03-31 13:05:22 +0100
commit83bfd94d1df5eecb8e4069a227c7d24598636d63 (patch)
tree14ef711cf4f158f48bfc83473e024b62f6f74da7 /src/nvim/lua/stdlib.c
parentb34097fe6d2ea5c84bcec65a834a430d9f58eb64 (diff)
downloadrneovim-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