Re: Big memory/time consumption in NSTreeController KVO GC
Re: Big memory/time consumption in NSTreeController KVO GC
- Subject: Re: Big memory/time consumption in NSTreeController KVO GC
- From: Rob Keniger <email@hidden>
- Date: Wed, 9 Dec 2009 09:38:28 +1000
On 09/12/2009, at 7:35 AM, Greg Parker wrote:
> Which OS version is this? 10.6.2 fixed a performance problem with garbage collection and large KVO populations. If you still have trouble in 10.6.2+ then you should file a bug report.
There are still massive remaining performance issues with NSTreeController/NSArrayController in 10.6 if you have a large number of active bindings.
Please see my bug report rdar://7139579 which includes a simple sample project. The performance on Snow Leopard is orders of magnitude slower than in 10.5.
All of the problems seem to relate to the private class NSConcretePointerArray and something that it's doing with weak references. That seems to be involved in Benjamin's case and it is definitely the problem in our case based on Shark traces.
Specifically, the routines auto_read_weak_reference(), readWeakAt() and objc_read_weak() that appear to be involved in the the -compact method of NSConcretePointerArray are taking up an inordinate amount of CPU time.
--
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