curl-library
Re: multi interface perf question
Date: Fri, 4 Feb 2011 13:29:28 -0800
Quick update... i notice that if i tick the multi interface 20 times per
frame instead of just once, i get response time back down to the 2-3 second
range.
I don't notice any drop in frame rate but i haven't done any real perf
tests.
I'm sure it takes SOME more amount of time but not sure how much, or how
that amount of time might vary from system to system.
On Fri, Feb 4, 2011 at 11:55 AM, Alan Wolfe <alan.wolfe_at_gmail.com> wrote:
> Hey Guys,
>
> I'm using the libcurl multi interface on windows and was wondering, how
> does it work under the hood?
>
> Specifically I was wondering, does it run requests on another thread or
> does it just use a small time slice each frame?
>
> I'm noticing something in my application where if i have a tight loop of
> doing a curl_multi_perform (with a sleep(1) to yield the thread) that i can
> do an HTTP request in about 2-3 seconds with about 3000 iterations into the
> loop.
>
> If however, i call curl_multi_perform once per frame, the HTTP request
> takes about 30 seconds to finish with about 2200 calls to
> curl_multi_perform.
>
> If i want it to be asynch but take less than 30 seconds, should i call
> curl_multi_perform more than once per frame?
>
> Also I was wondering Is there some rule about how much time
> curl_multi_perform uses each call, or does it vary from system to system?
>
> Thanks!
> Alan
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-02-04