• 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: Drawing to two CALayers at once (or pretend to)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing to two CALayers at once (or pretend to)?


  • Subject: Re: Drawing to two CALayers at once (or pretend to)?
  • From: Fritz Anderson <email@hidden>
  • Date: Mon, 27 Dec 2010 14:34:44 -0600

On 27 Dec 2010, at 2:04 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.

The way you describe it, the underlying data has to be cached somewhere. The maker of the database has had years to tune the DB's cache. Better you should rely on that, than spend days in the hope that you can come up with something better in a week. If the performance doesn't turn out to be acceptable, at least you'll know you won't be wasting your time.

	— F

_______________________________________________

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: Drawing to two CALayers at once (or pretend to)?
      • From: vincent habchi <email@hidden>
References: 
 >Drawing to two CALayers at once (or pretend to)? (From: vincent habchi <email@hidden>)

  • Prev by Date: Re: Text rendering/editing on OSX & iOS
  • Next by Date: Re: Drawing to two CALayers at once (or pretend to)?
  • Previous by thread: Drawing to two CALayers at once (or pretend to)?
  • Next by thread: Re: Drawing to two CALayers at once (or pretend to)?
  • Index(es):
    • Date
    • Thread