Re: Cocoa optimization
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