(commented this on ZOOKEEPER-338)
I've just noticed that we call getaddrinfo from zookeeper_interest... on every call. So from zookeeper_interest we always call update_addrs:
which in turns unconditionally calls resolve_hosts:
which does the unconditional calls to getaddrinfo:
We should fix this since it'll make 3.5.0 slower for people relying on DNS. I think this is happened as part of
ZOOKEEPER-107 in which the list of servers can be updated.