• 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: Rob Keniger <email@hidden>
  • Date: Wed, 9 Dec 2009 09:38:28 +1000

On 09/12/2009, at 7:35 AM, Greg Parker wrote:

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


There are still massive remaining performance issues with NSTreeController/NSArrayController in 10.6 if you have a large number of active bindings.

Please see my bug report rdar://7139579 which includes a simple sample project. The performance on Snow Leopard is orders of magnitude slower than in 10.5.

All of the problems seem to relate to the private class NSConcretePointerArray and something that it's doing with weak references. That seems to be involved in Benjamin's case and it is definitely the problem in our case based on Shark traces.

Specifically, the routines auto_read_weak_reference(), readWeakAt() and objc_read_weak() that appear to be involved in the the -compact method of NSConcretePointerArray are taking up an inordinate amount of CPU time.

--
Rob Keniger



_______________________________________________

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: 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>)
 >Re: Big memory/time consumption in NSTreeController KVO GC (From: Greg Parker <email@hidden>)

  • Prev by Date: Re: Binding and Observers
  • Next by Date: Improving speed of NSCollectionView scrolling
  • 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