today’s video
-
I already knew that switch statements were faster (and already knew that if its like three items the performance difference isn’t worth sweating it), but I hadn’t seen what is going on behind the scenes that makes them faster. To be clear, switch statements and if-else are not the same thing. Switch statements are forward-looking…