cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Reducing memory consumption.

From: Tsachi <tsachi.kimel_at_gmail.com>
Date: Mon, 15 Dec 2008 12:27:38 +0200

> Yes,
>
> Pass to the CFLAGS upon configuration a smaller size of buffer, something like
> -DCURL_MAX_WRITE_SIZE=4096
>
> See e.g. as it does curl-loader here:
> http://curl-loader.svn.sourceforge.net/viewvc/curl-loader/trunk/curl-loader/Makefile?view=markup

Compiling the libcurl with the -DCURL_MAX_WRITE_SIZE=4096 option did
reduced the memory in about a half.

Is that what you would expect from that change?

Is there a way to reduce libcurl memory footprint even more?

Basically the application just use "GET" to retrieve http files (no
uploads/ssl etc..) ~ 10 threads 10 multi handles.

Many thanks,
Regards,
Tsachi
Received on 2008-12-15