cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Performance problem II

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 26 Nov 2003 10:24:40 +0100 (CET)

On Tue, 25 Nov 2003, Stefan Sassenberg wrote:

> Now there's one big problem left which is the data transfer itself. The
> transfer of a file (70kByte) using the windows command line tool 'ftp' takes
> about 80-90ms. With libcurl it takes about 450ms. The network analyzer tells
> me that there are gaps between the packets from time to time with a size of
> about 80ms. Can you help me finding the reason for this? My sending method
> and the callback function are listed below.

This is not a problem with your provided code, as you shouldn't be able to
slow down libcurl that much. It seems like a libcurl performance problem. Is
this libcurl 7.10.8?

To find the culprit of this, you need patience and profiling tools that can
figure out where the time is spent.

Not very long ago, a friend of mine ran some profiling tools on libcurl, only
to find that it was very effective and spent very little extra time beside
what the download itself actually took. That test was not done on Windows
though.

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
 [[ Do not post private mails to this email address. They won't reach me. ]]
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Received on 2003-11-26