|
|
|
|
|
by mpweiher
4335 days ago
|
|
Looking at the original article, it seems like he is comparing sorting an array of NSNumber objects in Objective-C with sorting an array of primitive integers in Swift. The only really big surprise is that the latter actually used to be slower. Boggle. |
|
Regardless, I'd still like to see a comparison with C++ (where method dispatch looks a lot like Swift and the optimizer should be able to do similar things) and plain C. Might have to try that this evening if I get bored.
1: https://developer.apple.com/library/prerelease/mac/documenta...