• 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: Xcode 5 & Obj-C++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Xcode 5 & Obj-C++ (From: Peter Teeson <email@hidden>)
 >Re: Xcode 5 & Obj-C++ (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: Preserving undo actions on deleted targets
  • Next by Date: Re: Preserving undo actions on deleted targets
  • Previous by thread: Re: Xcode 5 & Obj-C++
  • Next by thread: Re: Xcode 5 & Obj-C++
  • Index(es):
    • Date
    • Thread