switch() or if()?
I think I remember hearing something about a string of if statements are actually faster than a switch statement. Do I remember correctly? ... or is this false?
Usually, if you can use a switch, then use a switch. It is generally a tiny bit faster than a string of if''s.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement