cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [RFC] Cached memory pools

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 1 May 2007 19:06:55 +0200 (CEST)

On Tue, 1 May 2007, Robert Iakobashvili wrote:

>> Cool idea ;-), I'am sure you have thought to use these nice callbacks
>> http://curl.haxx.se/libcurl/c/curl_global_init_mem.html in your project ;-)
>
> Yep. The callbacks are for user parts.

Not necessarily, you replace all memory functions libcurl use when you invoke
that function.

> The question is about caching memory pools for internal libcurl housekeeping
> allocations, where many places are using the "raw" calloc, malloc and free,
> unless this is done for purpose.

Do you have any numbers/estimates on what we could gain by doing this
suggested move?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-05-01