• 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: Greg Parker <email@hidden>
  • Date: Tue, 8 Dec 2009 13:35:37 -0800

On Dec 8, 2009, at 1:22 PM, Benjamin Rister wrote:
> Well...not quite. There’s nothing about doing this notification that requires allocating hundreds of megabytes of overhead, particularly when the model itself is a fraction of that size, including payload. As I mentioned, these blocks it’s allocating are 16KB each. I can’t fathom what legitimate data you could possibly keep to do this observation that would take up that much space. In addition, if you look at the stack trace, most of the memory allocations are happening in response to NSKeyValueObservanceBecameUseless; thus, it’s happening after all of the actual, real work is done.

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.


--
Greg Parker     email@hidden     Runtime Wrangler


_______________________________________________

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>
    • Re: Big memory/time consumption in NSTreeController KVO GC
      • From: Rob Keniger <email@hidden>
References: 
 >Big memory/time consumption in NSTreeController KVO GC (From: Benjamin Rister <email@hidden>)
 >Re: Big memory/time consumption in NSTreeController KVO GC (From: "email@hidden" <email@hidden>)
 >Re: 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: Binding and Observers
  • Previous by thread: Re: Big memory/time consumption in NSTreeController KVO GC
  • Next by thread: Re: Big memory/time consumption in NSTreeController KVO GC
  • Index(es):
    • Date
    • Thread