cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Time spent in ares_init_options

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 20 Jul 2015 00:12:16 +0200 (CEST)

On Thu, 16 Jul 2015, Paul Oliver wrote:

> It looks as if it's this
> https://github.com/bagder/c-ares/blob/bba4dc573f5c31b0145d09aa2c245e94896cf1df/ares_init.c#L1908.

What's RANDOM_FILE in your case? That function does look a bit fishy and
possible to improve.

> I can't seem to find a way of doing it globally...
>
> My /etc/hosts is 9 lines ;}

Well, that function has nothing to do with your hosts size, it is about
randomizing a key but it should be possible to improve significantly.

And to be pedantic: that's a problem with c-ares, not with libcurl so the
better place to discuss this and to send patches to improve it is on the
c-ares mailing list: http://cool.haxx.se/cgi-bin/mailman/listinfo/c-ares

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2015-07-20