02.05.2016, 14:26
Quote:
Boohoo, 100 nanoseconds difference. Readability should always take precedence over such extremely negligible improvements.
|
Quote:
Completely agree. This whole optimization thing is major overkill. I think it originated from Y_Less in that huge code optimazitions thread that was later proven redundant when it was benchmarked.
|
Quote:
Код:
if (a == 1 || a == 2 || a == 3 || a == 4 || a == 5) Код:
switch (a) { case 1, 2, 3, 4, 5: { // Do something } } |
@PrO.GameR, function calls themselves are extremely slow compared to statements. That's obvious.