• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Big memory/time consumption in NSTreeController KVO GC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Big memory/time consumption in NSTreeController KVO GC
      • From: Benjamin Rister <email@hidden>
References: 
 >Big memory/time consumption in NSTreeController KVO GC (From: Benjamin Rister <email@hidden>)

  • Prev by Date: Re: [iPhone] UINavigationController and UINavigationBar
  • Next by Date: Re: Customize the line's color that separates the window content from the title bar?
  • Previous by thread: Big memory/time consumption in NSTreeController KVO GC
  • Next by thread: Re: Big memory/time consumption in NSTreeController KVO GC
  • Index(es):
    • Date
    • Thread