• 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: Cocoa optimization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa optimization


  • Subject: Re: Cocoa optimization
  • From: Hamish Allan <email@hidden>
  • Date: Wed, 9 Nov 2005 12:10:26 +0000


On Wed, 9 Nov 2005 01:28:36 -0800, David Hendrix <email@hidden> wrote:


This application relies on bindings, so at some point the data has to
be turned in to something like an NSString, though I'm delaying that
as long as possible by maintaining the (multi-megabyte) data as
simple null-terminated strings until bindings actually ask for data
it wants to display. (The data in this case is read-only, so I don't
ever have to convert back.)

If you're only ever creating the NSStrings just in time for binding to a GUI, I'd have thought that the cost of allocating the NSString would be proportionally minimal compared with all the rendering operations. How have you got on with Shark?


Best wishes,
Hamish

_______________________________________________
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


  • Prev by Date: Custom Attributes
  • Next by Date: Re: authenticate per user
  • Previous by thread: Re: Cocoa optimization
  • Next by thread: Re: Cocoa optimization
  • Index(es):
    • Date
    • Thread