Re: [NSHost currentHost] halts app for 2s on Leopard
Re: [NSHost currentHost] halts app for 2s on Leopard
- Subject: Re: [NSHost currentHost] halts app for 2s on Leopard
- From: Rob Keniger <email@hidden>
- Date: Sun, 18 Nov 2007 12:37:18 +1000
On 18/11/2007, at 4:02 AM, Gerd Knops wrote:
Confirmed here for 10.5.0 and 10.5.1. It also seems to involve a DNS
lookup, and if there is a DNS problem, the delay will be a lot longer.
In my code I replaced it with the code below. Note that it is not
equivalent (read the applicable manual pages), but for many
situations sufficient, and always fast.
In one of the earlier builds of Leopard, Xcode was stalling for maybe
a minute at launch. When I profiled it, it turned out it was stalling
on [NSHost currentHost] when it was registering for distributed builds.
The stall only happened when I was disconnected from a network. It
sounds like it's very likely that this problem is still there,
although I have not experienced it in the release build.
--
Rob Keniger
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden