|
|
|
|
|
by Swizec
4149 days ago
|
|
When writing if-statements that have an AND, always put the quickest executing condition first. Don't use ORM's naively. Be careful about what you call in a loop. Those three alone account for most of the execution speed issues I've encountered. And they're all low-hanging fruit. |
|
This would matter a lot only if those if statements were in a bottleneck of the program, e.g. in a loop or nested loop that ran a high number of times. (Unless you are trying to squeeze out the last few cycles of performance). Or am I getting you wrong?