diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-02-08 13:40:35 +0100 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2024-02-08 14:40:34 +0100 |
commit | af5beac1bd7a68ff0a4e1a944853bacd6a6c0745 (patch) | |
tree | fef0a6f2a29a8fa760f767fb2782bf32d24084b1 /runtime/lua/vim/lsp/util.lua | |
parent | 1f9da3d0835af2cfe937de250c2cde3a59e1677e (diff) | |
download | rneovim-af5beac1bd7a68ff0a4e1a944853bacd6a6c0745.tar.gz rneovim-af5beac1bd7a68ff0a4e1a944853bacd6a6c0745.tar.bz2 rneovim-af5beac1bd7a68ff0a4e1a944853bacd6a6c0745.zip |
refactor(api): refactor more api functions to use arena return
Currently having two separate memory strategies for API return values is
a bit unnecessary, and mostly a consequence of converting the hot spot
cases which needed it first. But there is really no downside to using
arena everywhere (which implies also directly using strings which are
allocated earlier or even statically, without copy).
There only restriction is we need to know the size of arrays in advance,
but this info can often be passed on from some earlier stage if it is
missing.
This collects some "small" cases. The more complex stuff will get a PR
each.
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
0 files changed, 0 insertions, 0 deletions