> Furthermore, vtables are not mandatory in all cases/calls. A > good optimizer (or properly written class) can overcome such > dependencies in several cases - optimization is far easier to > accomplish outside the constraints of the ObjC runtime. So you get > faster messaging, and more optimization control from C++ objects.
In addition, in many cases where Objective-C would have one or more method dispatches in innermost performance-critical regions, with C++/STL you will have NO FUNCTION CALL AT ALL, but rather direct pointer-based data access or inlined code. In my own testing, I've found that to be the biggest difference, because Objective-C method dispatch is in fact pretty efficient method dispatch. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com