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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to