Comparing: Switch() and If()
#1

Hey everyone. Just wanted to know if there is a difference (according to the speed) between:

pawn Код:
if(x==0)print("x=0");
and

pawn Код:
switch(x){case 0:print("x=0");}
I know, the differences will be real small, but i wonder which is actually the faster version.

Thanks!
Reply


Messages In This Thread
Comparing: Switch() and If() - by DeathOnaStick - 16.07.2010, 15:43
Re: Comparing: Switch() and If() - by Sergei - 16.07.2010, 16:14
Re: Comparing: Switch() and If() - by WackoX - 16.07.2010, 16:56
Re: Comparing: Switch() and If() - by DeathOnaStick - 16.07.2010, 17:07
Re: Comparing: Switch() and If() - by Finn - 16.07.2010, 18:05
Re: Comparing: Switch() and If() - by DeathOnaStick - 16.07.2010, 18:39

Forum Jump:


Users browsing this thread: 1 Guest(s)