Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: Fewer mallocs is better, episode #47
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Wed, 26 Jan 2022 11:37:42 +0100 (CET)
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.
Date: Wed, 26 Jan 2022 11:37:42 +0100 (CET)
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.htmlReceived on 2022-01-26