Is Swift really swift?
Is Swift really swift?
- Subject: Is Swift really swift?
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sat, 05 Jul 2014 20:48:11 +0700
I just have converted some class from Objective-C to Swift. The results are somewhat disappointing:
Computing the primes up to 1e7 I get:
1.674 sec primes ≤ 9,999,999 Swift
1.701 sec primes ≤ 9,999,999 Swift
1.7 sec primes ≤ 9,999,999 Swift
1.706 sec primes ≤ 9,999,999 Swift
0.008284 sec primes ≤ 9,999,999 Objective-C
0.008865 sec primes ≤ 9,999,999 Objective-C
0.008571 sec primes ≤ 9,999,999 Objective-C
0.008283 sec primes ≤ 9,999,999 Objective-C
Swift is 200 times slower: 1.7 ↔ 0.0085 sec
Probably I am not using Swift very expertly. Also I know that this is not the final version of Swift - but still.
Has anybody better experiences with Swift?
Gerriet.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden