]> git.ipfire.org Git - thirdparty/curl.git/commit
dynbuf: introduce internal generic dynamic buffer functions
authorDaniel Stenberg <daniel@haxx.se>
Sat, 2 May 2020 15:04:08 +0000 (17:04 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 4 May 2020 08:40:39 +0000 (10:40 +0200)
commited35d6590e72c23c568af1e3b8ac6e4e2d883888
tree57555732f4f452bf84c3c7296581485be064a853
parent00c2e8da9a9555ce6171e3f7ddc5e43fc6f9bb4b
dynbuf: introduce internal generic dynamic buffer functions

A common set of functions instead of many separate implementations for
creating buffers that can grow when appending data to them. Existing
functionality has been ported over.

In my early basic testing, the total number of allocations seem at
roughly the same amount as before, possibly a few less.

See docs/DYNBUF.md for a description of the API.

Closes #5300
27 files changed:
docs/DYNBUF.md [new file with mode: 0644]
docs/Makefile.am
lib/Makefile.inc
lib/curl_ntlm_wb.c
lib/doh.c
lib/doh.h
lib/dynbuf.c [new file with mode: 0644]
lib/dynbuf.h [new file with mode: 0644]
lib/easy.c
lib/easyif.h
lib/escape.c
lib/http.c
lib/http.h
lib/http2.c
lib/http2.h
lib/http_proxy.c
lib/mprintf.c
lib/multi.c
lib/rtsp.c
lib/sendf.c
lib/transfer.c
lib/url.c
lib/urldata.h
tests/data/test558
tests/libtest/Makefile.inc
tests/server/Makefile.inc
tests/unit/unit1650.c