• 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: Is C's parameter passing more-efficient than ObjC's message passing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is C's parameter passing more-efficient than ObjC's message passing?


  • Subject: Re: Is C's parameter passing more-efficient than ObjC's message passing?
  • From: Shaun Wexler <email@hidden>
  • Date: Fri, 10 Feb 2006 17:30:37 -0800

On Feb 10, 2006, at 5:20 PM, Greg Titus wrote:

Actually, in the Objective-C case, after objc_msg_send has looked up the appropriate function based on the selector it simply branches to that function. When the function is done, it returns straight back into the caller, not into objc_msg_send. So there is no double function call overhead.

There are also non-nil versions available, to avoid the cmp/beqlr. More importantly, Tiger improves on previous implementations by placing an optimized version on the commpage, allowing a short branch rather than a double-jump thru the stub.
--
Shaun Wexler
MacFOH
http://www.macfoh.com



_______________________________________________ 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
References: 
 >Re: Is C's parameter passing more-efficient than ObjC's message passing? (From: "Frederick C. Lee" <email@hidden>)
 >Re: Is C's parameter passing more-efficient than ObjC's message passing? (From: Greg Titus <email@hidden>)

  • Prev by Date: Re: Is C's parameter passing more-efficient than ObjC's message passing?
  • Next by Date: Re: Objective-C++, class scope constants, name conflicts
  • Previous by thread: Re: Is C's parameter passing more-efficient than ObjC's message passing?
  • Next by thread: Re: Is C's parameter passing more-efficient than ObjC's message passing?
  • Index(es):
    • Date
    • Thread