• 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: Performance: Drawing hundreds of short text strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Performance: Drawing hundreds of short text strings


  • Subject: Re: Performance: Drawing hundreds of short text strings
  • From: Joar Wingfors <email@hidden>
  • Date: Mon, 20 Dec 2010 20:53:30 -0800

On 20 dec 2010, at 01.22, Mark Coniglio wrote:

> My application needs to draw hundreds of short text strings into an NSView. After reviewing the Cocoa documentation on drawing text, I am left unsure as to how to do this with the highest level of efficiency.


Don't optimize in the dark! Implement something in the most straight forward way you can imagine, and then measure the performance. If you find that it doesn't perform well enough, use your measurements to guide you to a better implementation. I don't think that we have enough information yet to provide really good suggestions.

Also, "hundreds of short text strings" doesn't sound all that bad. Will the display update a lot (many times per second) or not? If it will need to update, will the strings change, or will they just move around?

j o a r


_______________________________________________

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: Performance: Drawing hundreds of short text strings
      • From: Sherm Pendley <email@hidden>
References: 
 >Performance: Drawing hundreds of short text strings (From: Mark Coniglio <email@hidden>)

  • Prev by Date: Performance: Drawing hundreds of short text strings
  • Next by Date: Re: Performance: Drawing hundreds of short text strings
  • Previous by thread: Performance: Drawing hundreds of short text strings
  • Next by thread: Re: Performance: Drawing hundreds of short text strings
  • Index(es):
    • Date
    • Thread