Re: Keyword @defs
Re: Keyword @defs
- Subject: Re: Keyword @defs
- From: Kyle Sluder <email@hidden>
- Date: Tue, 1 Dec 2009 12:21:28 -0800
On Mon, Nov 30, 2009 at 1:33 PM, Ben Haller
<email@hidden> wrote:
> This is interesting to me, since I am in fact using @public and -> with
> some ivars to allow faster use of one of my classes. (Yes, I've confirmed
> that this is significant in Sampler; it is, in fact, quite a large
> percentage of the total time of my app, which has runtimes measured in days,
> so I do care :->). I understand the concept of the fragile base class
> problem and so forth; I just didn't realize Apple had done something to fix
> it that might affect the performance of my app. :->
Are you talking about an improvement over using accessor methods, or
over using non-fragile instance variables? Even though, as Greg
noted, it takes more work to do a non-fragile ivar access because of
the indirection, that is insignificant compared to the time that would
be spent in objc_msgSend. Especially if the ivars are used so often
that their symbols stick around in the cache.
--Kyle Sluder
_______________________________________________
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