diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-05-15 13:13:47 +0100 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-05-15 13:48:29 +0100 |
commit | cdd87222c86c5b2274a13d36f23de0637462e317 (patch) | |
tree | d2590241500fafb4b6cd104ea77d38afbf3c06f5 /scripts/gen_help_html.lua | |
parent | ffb4b50e74657b3b15199972371e0cff84f9cd4a (diff) | |
download | rneovim-cdd87222c86c5b2274a13d36f23de0637462e317.tar.gz rneovim-cdd87222c86c5b2274a13d36f23de0637462e317.tar.bz2 rneovim-cdd87222c86c5b2274a13d36f23de0637462e317.zip |
perf(lua): avoid spairs in vim.validate happy path
Problem:
`vim.validate` is too slow, mainly because of `vim.spairs`.
Solution:
Collect all errors in via `pairs`, and sort the errors via `spairs`.
Diffstat (limited to 'scripts/gen_help_html.lua')
0 files changed, 0 insertions, 0 deletions