Some performance questions about control structures
#1

Which usage is better?

1)
a. If (a[id]>0 && a[id]==x)
b. If (a[id] && a[id]==x)
c. If (a[bool:isidset] && a[id]==x)
d. If (a[id]==x)

2)
a. if(!isplayerconnected(i)) continue; if(isplayerinrangeofpoint(i)) {}
b. if(!(isplayerconnected(i) && isplayerinrangeofpoint(i))) continue; else {}
Reply


Messages In This Thread
Some performance questions about control structures - by godless_phoenix - 18.09.2016, 08:03
Re: Some performance questions about control structures - by Misiur - 18.09.2016, 08:41
Re: Some performance questions about control structures - by RoboN1X - 18.09.2016, 09:18

Forum Jump:


Users browsing this thread: 1 Guest(s)