Investigated slow DS server startup times on Windows

OS: Windows

Package source: conda

Version: 9.5.0

Together with Alexander and Dominik I've investigated the slowness reported in 1 via a remote debug session.

We quickly found out that the slowness is even present with -nodb.

As already reported the slowness is linear with the number of IP addresses assigned to each network card.

We tracked the issue down to Util::init_host_name() which calls getaddrinfo on each available IP address from all network interfaces and then calls getnameinfo (which does a reverse DNS lookup) on each IP address. And if the hostname can not be found easily it takes a couple of seconds.

Adding each IP address together with a host name to C:\Windows\system32\drivers\etc\hosts works around the issue.

Our use of the code in init_host_name seems to be to find the fully qualified hostname taken into account the specified -ORBendPoint.

But the code needs to optimization, just look at e.g. the use of host_found.