• 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: NSNotificationCentre very slow - normal?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNotificationCentre very slow - normal?


  • Subject: Re: NSNotificationCentre very slow - normal?
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 22 Oct 2009 00:46:36 -0600


On Oct 22, 2009, at 12:32 AM, Graham Cox wrote:

My question is, is this a known slow spot?

Yes.

I've never noticed NSNotificationCentre being so slow before, and can't think why it would be. And of course, what can I do to help it? I've temporarily removed the addObserver call in the code and sure enough it goes a lot faster. Trouble is, I do need that notification. Any ideas?

Don't add thousands of observers. Re-do your design so that one observer can process the thousands of objects that need processing instead.


Nick Zitzmann
<http://www.chronosnet.com/>



_______________________________________________

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: 
 >NSNotificationCentre very slow - normal? (From: Graham Cox <email@hidden>)

  • Prev by Date: NSNotificationCentre very slow - normal?
  • Next by Date: Re: NSNotificationCentre very slow - normal?
  • Previous by thread: NSNotificationCentre very slow - normal?
  • Next by thread: Re: NSNotificationCentre very slow - normal?
  • Index(es):
    • Date
    • Thread