Re: NSNotificationCentre very slow - normal?
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