• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [NSHost currentHost] halts app for 2s on Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >[NSHost currentHost] halts app for 2s on Leopard (From: Mark <email@hidden>)
 >Re: [NSHost currentHost] halts app for 2s on Leopard (From: Gerd Knops <email@hidden>)

  • Prev by Date: Re: Bridging C++ to Cocoa?
  • Next by Date: Re: Leopard performance penalty (3x slower), NSPopAutoreleasePool
  • Previous by thread: Re: [NSHost currentHost] halts app for 2s on Leopard
  • Next by thread: Re: ImageBrowser and Garbage Collection & 2D Graphics Release Notes
  • Index(es):
    • Date
    • Thread