Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

How can Swift be so much faster than Objective-C?

DZone's Guide to

How can Swift be so much faster than Objective-C?

· Java Zone
Free Resource

Bitbucket is for the code that takes us to Mars, decodes the human genome, or drives your next car. What will your code do? Get started with Bitbucket today, it's free.

In a post on StackOverflow, the community discusses Apple's announcement of the new Swift programming language and some benchmarks presented to emphasize it's performance capabilities. During the presentation at the WDCC on Monday, Apple used the following graphic:


The original poster posits the question:

It leaves me wondering though: how can a new programming language be so much faster? In this example, surely you just have a bad Objective-C compiler or you're doing something in a less efficient way? How else would you explain a 40% performance increase? I understand that garbage collection/automated reference control might produce some additional overhead, but this much?

Whether it is the result of carefully selected benchmarks to emphasize a point for marketing purposes or an actual indicator of Swift's power as a new player in the mobile development field, the question merits consideration. Check out the conversation on the original post. 

Bitbucket is the Git solution for professional teams who code with a purpose, not just as a hobby. Get started today, it's free.

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}