Over a million developers have joined DZone.

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

· Java Zone

Check out this 8-step guide to see how you can increase your productivity by skipping slow application redeploys and by implementing application profiling, as you code! Brought to you in partnership with ZeroTurnaround.

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. 

The Java Zone is brought to you in partnership with ZeroTurnaround. Check out this 8-step guide to see how you can increase your productivity by skipping slow application redeploys and by implementing application profiling, as you code!

Topics:

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

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

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

{{ parent.tldr }}

{{ parent.urlSource.name }}