aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_stringbuffer.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-08-04 08:40:46 +0800
committerGitHub <noreply@github.com>2026-08-04 08:40:46 +0800
commit6303d3680c7f76e8da732376e44e8b0c95520977 (patch)
treec53e7d08c0af6f95df9e6e930e2b1a1501cf4385 /runtime/lua/vim/_stringbuffer.lua
parent21a0227d2f654ddc568c3733e72150021cd84a6b (diff)
downloadrneovim-6303d3680c7f76e8da732376e44e8b0c95520977.tar.gz
rneovim-6303d3680c7f76e8da732376e44e8b0c95520977.tar.bz2
rneovim-6303d3680c7f76e8da732376e44e8b0c95520977.zip
vim-patch:9.2.0906: slow transstr() with long strings (#41144)
Problem: transstr() appends with STRCAT()/STRLEN() from the start of the result on every iteration, making it quadratic to the length of the string. Solution: Keep a tail pointer and append at it. (Samuel Schlesinger). closes: vim/vim#20925 https://github.com/vim/vim/commit/124c86868c253a5ec1347e7cbe102504d2d66a07 Co-authored-by: Samuel Schlesinger <sgschlesinger@gmail.com>
Diffstat (limited to 'runtime/lua/vim/_stringbuffer.lua')
0 files changed, 0 insertions, 0 deletions