curl-library
Re: help: libCURL with epoll
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 23 Nov 2011 00:12:20 +0100 (CET)
Date: Wed, 23 Nov 2011 00:12:20 +0100 (CET)
On Tue, 22 Nov 2011, Robert Bandl wrote:
> Actually it is, on my machine, when curl is built without c-ares,
> curl_easy_init() takes on average 60 microseconds. When using c-ares it's
> about 1100 microseconds for me, because with no c-ares there's no resolver
> init, with c-ares it has to init ares resolver (memory allocs, reading
> resolv.conf, etc) for each easy handle created. When doing 400 req/s as I
> do, that's a very noticeable time difference.
Uh, I forgot to ask: why are you creating new handles all the time and not
simply re-use already existing ones? Then there's no init time at all...!
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-11-23