• 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: Finder vs. Quartz performance.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder vs. Quartz performance.


  • Subject: Re: Finder vs. Quartz performance.
  • From: Toby Smith <email@hidden>
  • Date: Tue, 28 Dec 2004 12:29:10 -0500

Hi,

Just to follow up, I wanted to say thanks to you and all the other replies I received on my vague, newbie question. By caching my images, employing subviews, and restricting my redraws to the areas needed, I've discovered a whole new world of drawing performance. You guys have been incredibly helpful, given a very vague, rookie question. It's not often that happens on a mailing list.

Regards,
Tob


However, you can always employ caching. AppKit text drawing suffers from its requirement to be able to cope with all kinds of text (Japanese, Korean, Chinese, Latin, Inuk-tut (hope I spelled that right) lots of Indian and Arabic scripts...) with different directions, different ways to compose character sequences, decomposed character sequences... There are lots of ways to optimize your drawing if you know *your users* won't need any of these. The simplest case would be when displaying numbers: You could just create 10 NSImages for the digits from 0 to 10 and draw those instead of the actual text. If the size never changes (or is in a very restricted range), that may be the fastest way to composite everything together.

Caching layout managers etc. may yield the same result, though you'll get more built-in behavior, and where the above may simply fail if an unexpected character crops up, the layout manager will only take a tad longer, but will at least still work. From what I heard from Apple folks on this list, they're hard at work on optimizing numerous aspects of text drawing, so they're aware of the need to speed this up, but they haven't yet come around to it.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de



_______________________________________________ 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
References: 
 >Finder vs. Quartz performance. (From: Toby Smith <email@hidden>)
 >Re: Finder vs. Quartz performance. (From: "M. Uli Kusterer" <email@hidden>)

  • Prev by Date: prioritizing threads
  • Next by Date: month and day date ordering in date format
  • Previous by thread: Re: Finder vs. Quartz performance.
  • Next by thread: decimal floating formatting question
  • Index(es):
    • Date
    • Thread