03.02.2016, 18:03
Good, I hope I can give you good answers.
#1:
This won't change the performance, except the row number is different. The performance is the same.
#2:
continue will brings you nothing because continue; is going on to the next, for example:
When ID 1 isn't online, the loop will go to ID 2 because the continue is going to the next one.
#3:
When you need the huge string, then you can use it. It takes some memory, but 1500 is well. If you use 6000 it will be bad.
#4:
The second way is good, because you have fewer rows then method 1.
__________________
Sorry, when I wrote in a bad english, but I try to help you.
#1:
This won't change the performance, except the row number is different. The performance is the same.
#2:
continue will brings you nothing because continue; is going on to the next, for example:
PHP код:
for(new i;i<MAX_PLAYERS;i++)
{
if(!IsPlayerConnected(i))continue;
print("playerid %i is online",i);
}
#3:
When you need the huge string, then you can use it. It takes some memory, but 1500 is well. If you use 6000 it will be bad.
#4:
The second way is good, because you have fewer rows then method 1.
__________________
Sorry, when I wrote in a bad english, but I try to help you.