diff options
author | jdrouhard <john@drouhard.dev> | 2022-12-12 11:42:37 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-12 18:42:37 +0100 |
commit | 3869a2e0cf25323a8e5235840678b147ca908517 (patch) | |
tree | af9b075afa852407ea73465838fb667a3482db88 /scripts/gen_vimdoc.py | |
parent | d40d34aaa5720b67da629b4ca74674dfd4b9221c (diff) | |
download | rneovim-3869a2e0cf25323a8e5235840678b147ca908517.tar.gz rneovim-3869a2e0cf25323a8e5235840678b147ca908517.tar.bz2 rneovim-3869a2e0cf25323a8e5235840678b147ca908517.zip |
perf(lsp): update semantic tokens algorithm for parsing modifiers (#21383)
Instead of testing for every possible modifier type, only test bits up
to the highest set in the token array. Saves many bit ops and
comparisons when there are no modifiers or when the highest set bit is a
lower bit than the highest possible in the legend on average.
Can be further simplified when non-luaJIT gets the full bit module (see #21222)
Diffstat (limited to 'scripts/gen_vimdoc.py')
0 files changed, 0 insertions, 0 deletions