Open xJon opened 6 months ago
To add some more details, openeye.logic.Sanitizers#addLocalAddresses
is the problematic method. It calls InetAddress#getHostName
for all interfaces, which can take a very long time. I'm using Windows 10, and discovered the issue in OpenEye-1.7.10-0.8
.
I wrote a small test program that gathers all addresses using the same method. It can take anywhere between 30 and 60 seconds to execute on my machine, and parallelizing it only reduces this by ~10 seconds. So probably a larger refactor would be needed that makes the entire process asynchronous.
OpenEye can add around a minute of extra load time to the client, depending on the setup. Quoted from @makamys:
Due to this I'll stop using it in my modpacks, but it would be nice if it ever got addressed!