]> git.ipfire.org Git - thirdparty/curl.git/commit
tool_cb_wrt: stop alloc/free for every chunk windows console output
authorDaniel Stenberg <daniel@haxx.se>
Fri, 8 Aug 2025 20:56:47 +0000 (22:56 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 11 Aug 2025 07:37:29 +0000 (09:37 +0200)
commita46944a59963a78821c0300fc24a7d813087b3b7
tree665c718256db8ec189ffb3242f2ba129645180dd
parent626051cd8bed0383ecc5b085468c4cfeed67776d
tool_cb_wrt: stop alloc/free for every chunk windows console output

Instead realloc to the largest buffer and keep that for reuse during the
entire lifetime.

Co-authored-by: Jay Satiro <raysatiro@yahoo.com>
Closes #18233
src/tool_cb_wrt.c
src/tool_cfgable.c
src/tool_cfgable.h