diff options
author | Gregory Anders <greg@gpanders.com> | 2023-04-28 11:37:53 -0600 |
---|---|---|
committer | Gregory Anders <greg@gpanders.com> | 2023-04-28 15:38:50 -0600 |
commit | ef1801cc7c3d8fe9fd8524a3b677095d4437fc66 (patch) | |
tree | 7b7798ca68ac49c38c50899bd625d062e31c35a0 /runtime/lua/vim/treesitter/query.lua | |
parent | 5a0250c9a74ea400c4e21f70ed71c3dd1e2386e4 (diff) | |
download | rneovim-ef1801cc7c3d8fe9fd8524a3b677095d4437fc66.tar.gz rneovim-ef1801cc7c3d8fe9fd8524a3b677095d4437fc66.tar.bz2 rneovim-ef1801cc7c3d8fe9fd8524a3b677095d4437fc66.zip |
perf(iter): reduce number of table allocations
Packing and unpacking return values impairs performance considerably.
In an attempt to avoid creating tables as much as possible we can
instead pass return values between functions (which does not require
knowing the number of values a function might return). This makes the
code more complex, but improves benchmark numbers non-trivially.
Diffstat (limited to 'runtime/lua/vim/treesitter/query.lua')
0 files changed, 0 insertions, 0 deletions