]> git.ipfire.org Git - thirdparty/curl.git/commit
tool_operate: reduce errorbuffer allocs
authorDaniel Stenberg <daniel@haxx.se>
Tue, 30 Aug 2022 14:44:12 +0000 (16:44 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 1 Sep 2022 07:25:00 +0000 (09:25 +0200)
commit7be53774c41c59b47075fbaf758b1497f70b25d6
tree8e1a9dcd02b448c50bd3e8b64ca4a5d523eb3b19
parentc9061f242b99862bd32ce1ae3fefa1629a614bc1
tool_operate: reduce errorbuffer allocs

- parallel transfers: only alloc and keep errorbuffers in memory for
  actual "live" transfers and not for the ones in the pending queue

- serial transfers: reuse the same fixed buffer for all transfers, not
  allocated at all.

Closes #9394
src/tool_operate.c
src/tool_operate.h
src/tool_writeout.c