Skip to content

Swift Weekly - Issue 10 - The Swift Runtime (Part 8) - Switch Statement

Compare
Choose a tag to compare
@vandadnp vandadnp released this 21 Feb 14:04
· 36 commits to master since this release

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.