• 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: Keyword @defs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Keyword @defs
      • From: Ben Haller <email@hidden>
  • Prev by Date: Re: problem encoding large float* matrix
  • Next by Date: Re: totally baffled by "odoc" apple event failing on launch
  • Previous by thread: Re: How do I bind ManagedObject's relationships to a view?
  • Next by thread: Re: Keyword @defs
  • Index(es):
    • Date
    • Thread