We can recuperate slightly by arranging so that we don't load Inet4AddressImpl unnecessarily from Inet4AddressImpl etc.
A related inefficiency is that the call to NetworkInterface.getByInetAddress is inefficient since it enumerates and loops over all IPv4 and IPv6 interfaces, regardless of the type of address we're looking up. This is pre-existing, but
- relates to
-
JDK-8227721 test/jdk/java/net/NetworkInterface/NetworkInterfaceRetrievalTests.java should open the java.net package
-
- Resolved
-
-
JDK-8275640 (win) java.net.NetworkInterface issues with IPv6-only environments
-
- Resolved
-