curl-library
RE: help: libCURL with epoll
From: Kopparapu, Sangeeta (GE Healthcare, consultant) <Sangeeta.Kopparapu_at_ge.com>
Date: Wed, 23 Nov 2011 10:01:01 -0500
Date: Wed, 23 Nov 2011 10:01:01 -0500
> >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...!
I am using 10 easy handles per thread and have taken care of reusing the
handles in the code. But the transfer rate is 17Mbps.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-11-23