On Mon, 23 Sep 2019, Dan Fandrich via curl-library wrote:

I wrote a test program that resolves a name found in /etc/hosts and it does 70K lookups per second. If you disable curl's threaded resolver and configure the system resolver to only look in /etc/hosts (and not to go to the network for anything) then I would expect that would eliminate getaddrinfo() as the bottleneck.

Alternatively, you use CURLOPT_RESOLVE to specify the address yourself for the host name(s) you're using.

--

 / daniel.haxx.se | Get the best commercial curl support there is - from me
                  | Private help, bug fixes, support, ports, new features
                  | https://www.wolfssl.com/contact/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to