curl / Mailing Lists / curl-library / Single Mail


Reducing the number of mallocs

From: Daniel Stenberg <>
Date: Sat, 22 Apr 2017 20:30:22 +0200 (CEST)


Today I landed yet another small change to libcurl internals that further
reduces the number of small mallocs we do. This time the generic linked list
functions got converted to become malloc-less (they way linked list functions
should behave, really).

I just posted an article on my blog about my malloc-reducing recent work in
curl and how it impacts transfer permance quite notably:

tldr: curl transfers data faster now and it does significantly fewer mallocs.

Received on 2017-04-22