4 ms·
Swift is in the same or better performance bracket then C#/Java and unsafe usage can be close to performance of C (maybe 1.3-2x slower). I'm not sure about rant
by machinekob 4y ago
Swift is in the same or better performance bracket then C#/Java and unsafe usage can be close to performance of C (maybe 1.3-2x slower). I'm not sure about ranting for poor single test results :P
- gernb 4y agoLatner himself (creator of Swift) said Swift had speed issues because of ARC that they were hoping to solve with better code analysis. Did they?
- deleted 4y ago[deleted]
- georgelyon 4y agoThey have been improving this steadily (I would argue it is rarely an issue nowadays, and there have always been simple workarounds), but there’s no reason a solution to the problem mentioned in the article should need to use ARC, and should use structs/protocols instead (which don’t use reference counting). I’ve seen a lot of Benchmarks that rate Swift poorly because of this.
- guenthert 4y agoNo need for hand-waving, there are publicly available benchmark results: https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/swift.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... It's not the only benchmark in town and it needs to be taken with a grain of salt, but so does every benchmark.
- metaltyphoon 4y agoThe optimized version of C# is not really optimized as there are things left in the table that could be much close to C++.