Swift Weekly - Issue 10 - The Swift Runtime (Part 8) - Switch Statement
In this issue, I explain how Swift writes assembly code for switch
and case
statements and how it deals with ranges in switches and we will also, along the way, find some cool optimization tricks that Swift does in order to make our release code faster to execute, at the expense of making it more complicated.