Re: Is C's parameter passing more-efficient than ObjC's message passing?
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