Possible Duplicate:
Javascript switch vs. if…else if…else
just curious if things will run faster or be laid out in cache nicer or something that might increase performance by using a switch? At very least I know it looks nice and allows the next code to see that all the next sequential statements are dependent upon the evaluation of the same variable.