aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-02-21 10:49:05 +0100
committerbfredl <bjorn.linse@gmail.com>2024-02-24 09:30:21 +0100
commitc5990f2cdca5c16074d8d31fd595babe64c8dc94 (patch)
tree6a5584173c7cfaa64141bbb628b6378a832857c2 /runtime/lua/vim/lsp/util.lua
parent15f7ac6a045aad3355e4c6006423fde81644886a (diff)
downloadrneovim-c5990f2cdca5c16074d8d31fd595babe64c8dc94.tar.gz
rneovim-c5990f2cdca5c16074d8d31fd595babe64c8dc94.tar.bz2
rneovim-c5990f2cdca5c16074d8d31fd595babe64c8dc94.zip
perf(os/env): os_getenv() allocation when there is no env var set
os_getenv("FOO") caches the result when $FOO is set to something non-empty. However, when $FOO was not set, every new call to os_getenv("FOO") would allocate a temporary scratch buffer to immediately throw away. This has an huge impact e.g. on logging which depends on potentially non-set env vars.
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
0 files changed, 0 insertions, 0 deletions