Next Previous Contents

9. Case labels in a switch statments are checked in source order

Labels that appear first in a switch statement are tested first. So, if your switch statement contains labels that are selected most of the time, put them first in your source code. This will speed up the code.


Next Previous Contents