• 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: How heavy is NSLayoutManager?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How heavy is NSLayoutManager? (From: Frank Canova <email@hidden>)
 >Re: How heavy is NSLayoutManager? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Help on adding volume control
  • Next by Date: Re: Scheduling an application
  • Previous by thread: Re: How heavy is NSLayoutManager?
  • Next by thread: svnversion from Run Script in Xcode
  • Index(es):
    • Date
    • Thread