Re: Finder vs. Quartz performance.
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