On Wed, 26 Jan 2022, Gisle Vanem via curl-library wrote:
Allocations: 174 Maximum allocated: 201684
This depends on '%CURL_SSL_BACKEND' too.
With 'openssl', I get similar to the above.
Oh yes thanks, I forgot to mention that. I used the same OpenSSL version (and
the same set of other depedencies as well) in all my builds.
OpenSSL is one of the three TLS backends that use that function I optimized.
But with 'schannel', I get:
Allocations: 579 Maximum allocated: 811709
The schannel TLS backend is notoriously "mallocy", to the extent that I added
13.7 to the TODO recently: "Less memory massaging with Schannel":
https://curl.se/docs/todo.html#Less_memory_massaging_with_Schan
If you download or upload large content, you'll see it hit the roof in a way
it really shouldn't.
--
/ daniel.haxx.se
| Commercial curl support up to 24x7 is available!
| Private help, bug fixes, support, ports, new features
| https://curl.se/support.html
--
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html