curl / Mailing Lists / curl-library / Single Mail
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

From: Daniel Stenberg via curl-library <>
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":

If you download or upload large content, you'll see it hit the roof in a way
it really shouldn't.

  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features

Received on 2022-01-26