Re: Should I observe every object in my view, or just the visible ones?
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