| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: [PATCH RFC] hyper/multi-socket API optimization
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 10 Apr 2007 15:36:34 +0200 (CEST)
On Tue, 10 Apr 2007, Robert Iakobashvili wrote:
> AREA/CLASS/EXAMPLE AFFECTED:
A noticable effect is that it adds a new function to the API. Can you also
I appreciate your effort and contribution. I feel a bit silly for not having
> +#define CSELECT_IN 0x01
Please modify these to get a CURL_ prefix to stay within our scope.
> +CURL_EXTERN CURLMcode curl_multi_socket_noselect(CURLM *multi_handle,
I'm not very happy with the name for this new function. 'noselect' is not
> The performance improved a bit and the loader made 15% more requests for the
Wow, that's certainly a significant improvement!
> - Is it better to add the bitmask to an exiting API curl_multi_socket()
The latter, apart from me not like the name then. :-) We should also already
> - Where to keep the bitmask: in SessionHandle or better in UserDefined?
Shouldn't it be located in the connectdata struct? If it should be in the
> - Does it makes sense to have a flag and not to scan for all splay timers in
How would that work? I mean, how can the app know when the timeout handling
It doesn't really "scan for all", in the vast majority of all invokes it'll
> 1. A registered socket callback is called by libcurl on a connected handle
Yes sure, it certainly can be made to. It was just me taking the slightly
> 2. There is a huge number of gettimeofday() calls originating from libcurl.
I think the reason for them is that we call Curl_tvnow() at numerous places to
If we can figure out a way to perhaps make one call at an earlier place and
Oh, perhaps not totally unimportant: I would like to apply this work after the
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-04-10 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info