Secrets of Swift’s Speed

Mike Ash: A simple array index is quite a bit faster than objc_msgSend, even with its fancy caching and finely tuned assembly code, so this is a nice performance win. The call to testmethod2 is even nicer. Because it’s declared @final, the compiler knows that nothing can override it. No matter what happens, the call … Continue reading Secrets of Swift’s Speed