cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Reducing memory consumption.

From: Robert Iakobashvili <coroberti_at_gmail.com>
Date: Mon, 15 Dec 2008 19:40:14 +0200

On Mon, Dec 15, 2008 at 12:27 PM, Tsachi <tsachi.kimel_at_gmail.com> wrote:

> > 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?

Positive.

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

Please, follow Daniel's guidelines.

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

Please, consider looking into the buffers used. Up to my mem one of them is
kept for uploads. May be you can cut it.

>
>
> Many thanks,
> Regards,
> Tsachi
>

Truly,
Robert Iakobashvili
......................................................................
www.ghotit.com
Assistive technology that understands you
......................................................................
Received on 2008-12-15