How Swift is so fast
First, let's have a quick recap—that is, why Swift is swift—and see what is so special about Swift and its cool features.
Swift is a strongly typed compiled programming language. This makes it a very safe programming language. Swift is very strict about types, and it verifies that all types are used correctly in the source code. It catches a large number of issues at compile time.
Swift is also a static programming language. Its source code is compiled to the assembly code and the assembly code is compiled to the machine code using the LLVM tool. Running native machine code instructions is the fastest way of doing this. In comparison, Java and C# are compiled to a piece of intermediate code, and it needs a virtual machine to run it, or another tool that will translate it into machine instructions. Because Swift doesn't do this at runtime, it has a very big performance gain.
By mixing strongly typed rules and compiling to assembly code, Swift is able to analyze code very...