• 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: Should I observe every object in my view, or just the visible ones?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Should I observe every object in my view, or just the visible ones?


  • Subject: Re: Should I observe every object in my view, or just the visible ones?
  • From: j o a r <email@hidden>
  • Date: Mon, 16 May 2005 21:14:25 +0200


On 16 maj 2005, at 20.57, Scott Ellsworth wrote:

Normally, I would just implement the easiest thing, then profile to see if it can be made better. I am not sure what negative consequences observing everything would have, though, so I am not sure where it would show up in Shark and Object Alloc.

It would. If I were you, I would start with adding observers for all objects, and see how that works out. I wouldn't bother trying to mark individual rects inside the table view as dirty, unless profiling tells you otherwise. Simply call reloadData as needed, possibly pooling updates to a max number of updates per second.


Anyone done this, and have real world performance to report?

Nothing anyone else did would be applicable to your case. You need to do your own benchmarks.


If you did need to do this, how did you detect which items were visible - mouseDown?

You to some extent use the information provided by your table view data source. The table view only requests information about the items that has been visible since your last reload.


j o a r



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Should I observe every object in my view, or just the visible ones? (From: Scott Ellsworth <email@hidden>)

  • Prev by Date: Re: How do I populate Tiger's Core Data via NSSQLiteStoreType; programatically?
  • Next by Date: Re: From Panther to Tiger
  • Previous by thread: Should I observe every object in my view, or just the visible ones?
  • Next by thread: Re: Should I observe every object in my view, or just the visible ones?
  • Index(es):
    • Date
    • Thread