On Dec 27, 2010, at 12:59 PM, vincent habchi wrote:

>>> Knowing that the path is computed by reading values in a database, I'd like 
>>> to avoid a double reading that costs some time (even if there is a cache) 
>>> and seems redundant
>> 
>> Ancient precept: Make it right, then make it fast. Do it the simplest 
>> reasonable way, even if you can imagine a "more efficient" way to do it. 
>> Then measure.
> 
> You're absolutely right. My concern was that the cache might not be 
> sufficient to hold all data because DB traffic can be pretty high. But, first 
> of all, I must write out this routine to put the text along the paths, and 
> that isn't going to be easy.


That, but I also don't see why the two layers would need to read the data 
separately. For example, their delegate can be the one to fetch and read the 
data and create the path from it, then save that CG path. When either layer 
draws, it would simply use that path. It'd be trivial.


--
Seth Willits



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to