diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-08-28 11:42:43 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2021-08-28 16:52:01 +0200 |
commit | 705e8f10ac83f32dea5bfa0569aba12a692fe522 (patch) | |
tree | cb98ca33c25cdcc127a167ae557fb6af398ae44f /test/functional/lua/vim_spec.lua | |
parent | 469652d0d5540f646a52edda853e7d87e879d457 (diff) | |
download | rneovim-705e8f10ac83f32dea5bfa0569aba12a692fe522.tar.gz rneovim-705e8f10ac83f32dea5bfa0569aba12a692fe522.tar.bz2 rneovim-705e8f10ac83f32dea5bfa0569aba12a692fe522.zip |
perf(api): avoid spurious allocations when converting small objects
Converter functions use a heap-allocated stack to handle complex
nested objects. However, these are often called with simple,
primitive values like integers or bools wrapped in an Object.
Avoid the memory allocation in this case using kvec_withinit_t
Diffstat (limited to 'test/functional/lua/vim_spec.lua')
0 files changed, 0 insertions, 0 deletions