Uh, emulation and scripting language byte code engines? State machines? Filtering?
There are plenty of reasons to iterate a switch statement, even much more than millions of times.
There are plenty of reasons to iterate a switch statement, even much more than millions of times.
You get that these are outliers right? The majority of software doesn't need to concern itself with these problems. They're examples of software that deals with analyzing and running other software.
I'm not sure why I'm bothering to respond to these comments. This whole discussion has apparently been system developers telling app developers they need to start micro-optimizing their cold loops because "what if your user clicks the button 12 million times in under a minute".