diff options
author | James <89495599+IAKOBVS@users.noreply.github.com> | 2024-03-13 03:34:59 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-13 04:34:59 +0800 |
commit | 119390e7ce3fe4f4f3da8bdd963ea10ec8976a3a (patch) | |
tree | 34a997557975ebe999a29bd882cdeef8f2ddbdf9 /runtime/lua/vim/treesitter/highlighter.lua | |
parent | dd0fc73bbed4fde9db093c8798601a25d290ad1f (diff) | |
download | rneovim-119390e7ce3fe4f4f3da8bdd963ea10ec8976a3a.tar.gz rneovim-119390e7ce3fe4f4f3da8bdd963ea10ec8976a3a.tar.bz2 rneovim-119390e7ce3fe4f4f3da8bdd963ea10ec8976a3a.zip |
refactor: avoid copying before vim_strup() if possible (#27830)
Current uses of vim_strup() calls memcpy()/strcpy() before calling vim_strup().
This results in 2 * strlen(string) operations.
We can trivially convert to lowercase while copying the string instead.
Diffstat (limited to 'runtime/lua/vim/treesitter/highlighter.lua')
0 files changed, 0 insertions, 0 deletions