diff options
author | VanaIgr <vanaigranov@gmail.com> | 2023-12-17 16:48:27 -0600 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-01-22 09:04:42 +0800 |
commit | b5653984e5de514410b5654d2a9b92bdcb9eedf3 (patch) | |
tree | 68b8cd7f358977da70811e124d84192096d84a2f /test/functional/api/proc_spec.lua | |
parent | 2f2f12122f3883dc6faf25751e176646f044db77 (diff) | |
download | rneovim-b5653984e5de514410b5654d2a9b92bdcb9eedf3.tar.gz rneovim-b5653984e5de514410b5654d2a9b92bdcb9eedf3.tar.bz2 rneovim-b5653984e5de514410b5654d2a9b92bdcb9eedf3.zip |
perf: don't decode utf8 character multiple times in getvcol()
The optimized virtual column calculation loop in getvcol()
was decoding the current character twice: once in ptr2cells()
and the second time in utfc_ptr2len(). For combining charcters, they were
decoded up to 2 times in utfc_ptr2len(). Additionally, the function used to
decode the character could be further optimised.
Diffstat (limited to 'test/functional/api/proc_spec.lua')
0 files changed, 0 insertions, 0 deletions