Massive slowdown in NSArrayController selections in 10.6
Massive slowdown in NSArrayController selections in 10.6
- Subject: Massive slowdown in NSArrayController selections in 10.6
- From: Rob Keniger <email@hidden>
- Date: Fri, 4 Sep 2009 12:43:48 +1000
I'm interested to know if anyone else has been bitten by what seems to
be a fairly serious performance regression bug in 10.6 with
NSArrayController/NSTreeController.
Basically, if you have an NSArrayController with more than a few
bindings, changing selection in the controller takes at least an order
of magnitude more time than in Leopard.
This is causing major slowdowns in my app, which has a bunch of
inspector panels with controls all bound to an NSTreeController.
This example project demonstrates the issue:
http://secretsoftwarefactory.com/bugs/KVOBugtest.zip
The sample app takes about 50ms to change selection on Leopard, but
500-1500ms to change selection on 10.6.
Shark profiling shows that the time is largely taken up with calls to
auto_read_weak_reference(), readWeakAt() and objc_read_weak(). It
makes no difference if the app is run under GC or not.
I would have thought that quite a few apps would have seen this
problem as the performance degradation is so dramatic.
I've filed this bug as rdar://7139579 if anyone wants to reference it.
--
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