cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Please advise on how to improve libcurl HTTP GET performance

From: Ben Greear <greearb_at_candelatech.com>
Date: Tue, 11 Oct 2011 09:48:06 -0700

On 10/11/2011 09:39 AM, Alex wrote:
> I've used the --libcurl option and compiled the resulting .cpp. Guess what?.. Same 35-40 KB/s, whereas Curl gives me ~300 KB/s.
> I only see one explanation: there's something wrong about the way I have compiled libcurl.
> I have used the VS project from the distribution archive. I have compiled it into static lib, and, as far as I remember, I didn't change any options, except for enabling LTCG in debug.
>
> Any further ideas?

Use valgrind or similar to profile your app. You could also use strace
to see if your app is blocking on some system call when it shouldn't.

On Linux, we've downloaded more than 1Gbps using libcurl in our application
(from local web servers on 10G network links).

Thanks,
Ben

> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html

-- 
Ben Greear <greearb_at_candelatech.com>
Candela Technologies Inc  http://www.candelatech.com
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-10-11