switch is supposed to be faster when you have many cases, because it 
will use binary search. Not really relevant here, though...