diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-01-03 09:54:12 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-03 01:54:12 +0000 |
| commit | 147190d8e7dd53cb329230630f764020b15d9c21 (patch) | |
| tree | e15145d8dd95be1e5f4aee53f62d192e8f476ad0 /test/functional/vimscript/executable_spec.lua | |
| parent | ca731d2e55f830d98075a14fb74b494598c70c74 (diff) | |
| download | rneovim-147190d8e7dd53cb329230630f764020b15d9c21.tar.gz rneovim-147190d8e7dd53cb329230630f764020b15d9c21.tar.bz2 rneovim-147190d8e7dd53cb329230630f764020b15d9c21.zip | |
vim-patch:partial:9.1.2044: Inefficient use of ga_concat() (#37209)
Problem: Inefficient use of ga_concat()
Solution: Use ga_concat_len() when the length is already known to avoid
use of strlen() (John Marriott).
Additionally the following changes are done:
os_unix.c:
- in function `socket_server_list_sockets()` use a `string_T` for the
strings `buf` and `path` for use in `ga_concat_len()`
and drop un-needed variable `dir`.
quickfix.c:
- in function `qf_jump_print_msg()` use a `string_T` for the string
`IObuff` for use in `ga_concat_len()`.
- in function `qf_range_text()` use a `string_T` for the string `buf`
for use in `ga_concat_len()`.
register.c:
- simplify function `execreg_line_continuation()`.
terminal.c:
- in function `read_dump_file()` use a `string_T` for the
string `prev_char` for use in `ga_concat_len()`.
tuple.c:
- in function `tuple_join_inner()` use a `string_T` for the
string `s` for use in `ga_concat_len()`. Also, change local struct
`join_T` to use `string_T`.
vim9type.c:
- in functions `type_name_tuple()` and `type_name_func()`
use a `string_T` for the string `arg_type` for use in
`ga_concat_len()`.
closes: vim/vim#19038
https://github.com/vim/vim/commit/a7e671fbb9fa2af9ad6c4ba9a7a881df431cd02b
Skip tuple.
Co-authored-by: John Marriott <basilisk@internode.on.net>
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions