Re: NSOperation Efficiency
Re: NSOperation Efficiency
- Subject: Re: NSOperation Efficiency
- From: Kyle Sluder <email@hidden>
- Date: Wed, 05 Dec 2012 07:42:07 -0800
On Dec 5, 2012, at 2:05 AM, Mike Abdullah <email@hidden> wrote:
>
> On 5 Dec 2012, at 04:41, Kyle Sluder <email@hidden> wrote:
>
>> NSOperationQueue uses KVO for dependency tracking and queue width
>> management. In 10.7, the implementation was apparently changed to thunk
>> all KVO ops onto the main thread; I'm guessing this fixed a bug by
>> serializing all state changes. It also slowed down enqueueing
>> operations onto our NSOperationQueue from a background thread by a
>> factor of ten or more. I have samples to prove it.
>
> Wow, that's a big change! Are there are docs to back it up, or is this purely empirical?
>
Not that I've seen. The only evidence I have is a pile of samples.
--Kyle Sluder
_______________________________________________
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