Day 23 of Advent of Compiler Optimisations!
Switch statements compile to jump tables, right? Well... sometimes. But what happens when your five-case switch becomes pure arithmetic? Or when checking for whitespace turns into a single mysterious constant and some bit manipulation? Turns out compilers have a whole bag of tricks beyond the textbook answer.
Read more: https://xania.org/202512/23-switching-it-up
Watch: https://youtu.be/aSljdPafBAw