curl-library
Re: [PROF RFC 1/2] profiling of libcurl by curl-loader, steady state
From: Robert Iakobashvili <coroberti_at_gmail.com>
Date: Wed, 18 Apr 2007 19:10:16 +0200
Date: Wed, 18 Apr 2007 19:10:16 +0200
On 4/18/07, Yang Tse <yangsita_at_gmail.com> wrote:
> gettimeofday()
> that some of those calls can be completely avoided.
>
> The attached patch saves one call to curlx_tvnow(), which calls
> gettimeofday(), in each of Curl_socket_ready(), Curl_poll() and
> Curl_select() when these are called with a zero or infinite timeout.
I will look into it.
>
> I'm not sure if the profiling you're doing would notice the difference or not.
We'll try to compare.
I will look into the strace trying to assess the number of gettimeofday()
per each transfer.
Thank you very much.
-- Sincerely, Robert Iakobashvili, coroberti %x40 gmail %x2e com ................................................................... Navigare necesse est, vivere non est necesse ................................................................... http://curl-loader.sourceforge.net An open-source HTTP/S, FTP/S traffic generating, and web testing tool.Received on 2007-04-18