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: 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