03.08.2016, 22:31
Switch is not "faster", it works different, it works with constants, while with if-else if you can check if two variables are same.
Learn how to use each the right way, and you don't need your code to be "faster" at all, everything would just work.
Learn how to use each the right way, and you don't need your code to be "faster" at all, everything would just work.