cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [RFC] Cached memory pools

From: Robert Iakobashvili <coroberti_at_gmail.com>
Date: Tue, 1 May 2007 17:00:47 +0200

On 5/1/07, Aleksandar Lazic <al-curllibrary_at_none.at> wrote:

> >In some places, like hash, etc there is an intensive memory
> >allocation/deallocation.
> >
> >What do you think about arranging some memory pools/allocators with a
> >memory caching.
>
> 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.

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.

-- 
Sincerely,
Robert Iakobashvili,
coroberti %x40 gmail %x2e com
...........................................................
http://curl-loader.sourceforge.net
A web testing and traffic generation tool.
Received on 2007-05-01