Re: How heavy is NSLayoutManager?
Re: How heavy is NSLayoutManager?
- Subject: Re: How heavy is NSLayoutManager?
- From: Douglas Davidson <email@hidden>
- Date: Wed, 3 Jun 2009 08:46:26 -0700
On Jun 2, 2009, at 6:17 PM, Graham Cox wrote:
You don't say what you think might be a problem - speed, memory use?
I find that speed for my purposes is entirely adequate - I can
interactively adjust objects that cause text re-layout and it keeps
up with that no problem, even when the text is wrapping into an
arbitrary-shaped path. Actual rendering speed of many, many text
objects is also fine, and is dominated by the underlying glyph
rendering as expected. Since that's the case I haven't been tempted
to allocate one layout manager per object to gain the benefits of
caching the layout - it doesn't figure prominently in the profile.
Ultimately, this is something that has to be answered by measurement
based on the usage of the individual application. I would not usually
worry about allocating dozens of layout managers in a typical
application, as long as you are not expecting to scale that number up
by several orders of magnitude in the future. However, every
application's usage pattern is different.
Douglas Davidson
_______________________________________________
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