Re: Xcode 5 & Obj-C++
Re: Xcode 5 & Obj-C++
- Subject: Re: Xcode 5 & Obj-C++
- From: Jens Alfke <email@hidden>
- Date: Wed, 29 Jan 2014 15:31:48 -0800
On Jan 29, 2014, at 3:16 PM, Rui Pacheco <email@hidden> wrote:
> To those of you doing Objective-C++ apps, is there a difference in terms of performance or memory usage?
> I’ve noticed that TextMate 2, which is done in Objective-C++, consumes less memory than the Chocolat editor which seems to be done exclusively in Cocoa.
You can't generalize. In theory C++ is more efficient, but it's perfectly possible to write bloated code in C++ and plenty of people have done it. (In particular, big class libraries can result in humungous vtables, and templates and inlining can cause code-size explosions.)
It's also all too easy to write unmaintainable code in C++, and that's often an even more important factor to a developer than performance. Objective-C is simpler, but it's also clearer.
—Jens
_______________________________________________
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