Re: [noob] Best practice for creating multiple instances of a View
Re: [noob] Best practice for creating multiple instances of a View
- Subject: Re: [noob] Best practice for creating multiple instances of a View
- From: Stuart Malin <email@hidden>
- Date: Fri, 20 Mar 2009 09:38:21 -1000
On Mar 20, 2009, at 9:30 AM, I. Savant wrote:
On Fri, Mar 20, 2009 at 2:53 PM, Stuart Malin <email@hidden>
wrote:
Thanks for the quick reply and the assurance. No performance
issues -- just
had been wondering about the effect of going back to disk every
time I need
one of these views (which will be frequent and there will be many).
Perhaps
the fact of disk caching makes this a non issue.
As Kyle stated and I implied - premature optimization. :-) Measure
first, then optimize.
As I recall (and I don't know if I recall correctly), I thought I
heard that nib loading is pretty good about caching things, so I'd be
surprised to see it hitting the disk each time, but it's not
impossible, so ... measure then optimize.
Appreciate the comments regarding premature optimization. I wasn't
trying to optimize -- I had just been looking to validate that I was
going about handling the situation the smartest way. Although nothing
had appeared to me as "more obvious or more efficient" (referencing
Kyle) -- it isn't always clear to us noobs when a non-obvious approach
is available (and better). Thanks again for the comments -- I will be
sure to remain with the proven approach I am pursuing :-)
_______________________________________________
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