]> git.ipfire.org Git - thirdparty/curl.git/commit
urlapi: avoid Curl_dyn_addf() for hex outputs
authorDaniel Stenberg <daniel@haxx.se>
Tue, 31 Jan 2023 23:17:28 +0000 (00:17 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 1 Feb 2023 22:05:51 +0000 (23:05 +0100)
commit7305ca63e2b408a1fe9dc1c59f4e833bea942ee4
tree5510b07ea8dc07dfc3d22f092f083b314f735b75
parent804d5293f899705198c310c6f76c61a8859da8d7
urlapi: avoid Curl_dyn_addf() for hex outputs

Inspired by the recent fixes to escape.c, we should avoid calling
Curl_dyn_addf() in loops, perhaps in particular when adding something so
simple as %HH codes - for performance reasons. This change makes the
same thing for the URL parser's two URL-encoding loops.

Closes #10384
lib/curl_ctype.h
lib/urlapi.c