3 ms·
This applies to naive code, where you let the compiler fix it. In those cases, Swift can be better because of the reasons you mention. However, if you actually
by mpweiher 12y ago
This applies to naive code, where you let the compiler fix it. In those cases, Swift can be better because of the reasons you mention.
However, if you actually put your mind to it, for the 1-5% of code that actually matter, performance-wise, it is hard to beat the performance, and more importantly: predictability, of C.