switch( a ) {
case 0:
case 1:
default :
}

よりも

if (a==0) ;
else if (a==1);
else if (a==2);

のほうが速かったのですが、もしかしてswitchって使いでがありませんか?