• 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: About iVars declaration and property
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About iVars declaration and property


  • Subject: Re: About iVars declaration and property
  • From: Fritz Anderson <email@hidden>
  • Date: Wed, 16 Nov 2011 13:15:06 -0600

On 16 Nov 2011, at 11:31 AM, Don Quixote de la Mancha wrote:

> objc_msgSend is slow as Alaskan Molasses compared to a simple C function call.

Cocoa uses Objective-C for I/O and user-interaction libraries, to respond to events that take place over periods of milliseconds.

For those purposes, I can't weep for calls that take hundreds of nanoseconds instead of tens. If you need C/C++ speeds, by all means use those languages and write your ivars directly.

In my experience, obsessing on objc_msgSend for performance optimization is a fool's errand. Filter out system-library samples (they get reattributed to your own code). That will tell you where to optimize _your_ code. If that means factoring message sends out of inner loops, at least you'll know.

	— F

_______________________________________________

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: 
 >Re: About iVars declaration and property (From: Matt Neuburg <email@hidden>)
 >Re: About iVars declaration and property (From: Torsten Curdt <email@hidden>)
 >Re: About iVars declaration and property (From: glenn andreas <email@hidden>)
 >Re: About iVars declaration and property (From: Torsten Curdt <email@hidden>)
 >Re: About iVars declaration and property (From: Kyle Sluder <email@hidden>)
 >Re: About iVars declaration and property (From: Torsten Curdt <email@hidden>)
 >Re: About iVars declaration and property (From: Kyle Sluder <email@hidden>)
 >Re: About iVars declaration and property (From: Torsten Curdt <email@hidden>)
 >Re: About iVars declaration and property (From: Jens Alfke <email@hidden>)
 >Re: About iVars declaration and property (From: Torsten Curdt <email@hidden>)
 >Re: About iVars declaration and property (From: Jens Alfke <email@hidden>)
 >Re: About iVars declaration and property (From: Don Quixote de la Mancha <email@hidden>)
 >Re: About iVars declaration and property (From: Kyle Sluder <email@hidden>)
 >Re: About iVars declaration and property (From: Don Quixote de la Mancha <email@hidden>)

  • Prev by Date: Re: About iVars declaration and property
  • Next by Date: Re: About iVars declaration and property
  • Previous by thread: Re: About iVars declaration and property
  • Next by thread: Re: About iVars declaration and property
  • Index(es):
    • Date
    • Thread