06.07.2015, 20:31
Quote:
Yes in most of the case, why care about negligible speed!
No, for all Pool sizes. Because the pool size have all the valid cells and if you don't use =, you'll miss the last cell. Doesn't make sense if you use i++. It will turn out to be an infinite loop which will always exceed a value greater than Pool size every time (+1). |
Anyway I might be wrong, misread
Код:
Use the above if the order in which the code is executed does not matter. You can optimize that too further but I feel that it will reduce the readability of the code.
Код:
for(new i = GetPlayerPoolSize();--i != -1;) {}