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: "email@hidden" <email@hidden>
- Date: Tue, 8 Dec 2009 19:44:50 +0000
>
>
> Any ideas about why NSTreeController’s KVO is taking up so much memory/CPU with bookkeeping? Any suggestions for working around the problem?
>
I assume that you are using bindings. Looks like a typical KVO notification storm to me.
What works well for adding and updating one or two objects can easily turn to sludge for larger object numbers as thousands of KVO notifications are sent.
This isn't bookkeeping - its KVO doing what you asked it to do - telling you about every change to your model.
Are you adding your nodes to the NSTreeControllers content while bindings are active?
If you build your tree separately and then set the NSTreeController content/binding then things should improve drastically.
Hope this helps.
Jonathan
> Thanks,
> Benjamin Rister_______________________________________________
>
> 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
_______________________________________________
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