Is a switch statement actually faster than an if statement? I ran the code below on Visual Studio 2010's
I am working on some Java code which needs to be highly optimized as it will run in hot functions that are inv