Comment 7 for bug 1205527

Revision history for this message
Stephen Brandt (ztefn) wrote :

Hi Eduardo,

Thanks for your feedback. The random slow startup sometimes is indeed a little spooky. I myself often experience different startup speeds caused by the internet connection check in Controller.HasInternetConnection. I attempted to improve this check a few versions ago by using Dns.GetHostAddresses instead of TcpClient (http://bazaar.launchpad.net/~ztefn/haguichi/1.0/revision/293), but it's still not quite optimal. You can check if this function is the bottle neck by directly returning "true" inside it and see if after that the startup speed is consistent.

Furthermore, I share your concern regarding the number of threads. I've just made a change to add these threads to the thread pool instead of spawning all separate threads:
http://bazaar.launchpad.net/~ztefn/haguichi/trunk/revision/355
I don't expect any speed improvements for this change, but I guess it should prevent (slow) machines from overcooking. =)