|
|
|
|
|
by dchichkov
4901 days ago
|
|
It depends. But in this particular case, some trivial extra code inserted inside that if statement may break things. Like breaking vectorization of that 'for' (note, that we are going over vertices). When you are writing the code, some times you may want to put additional constraints on the allowed operations, modifications, etc. A trivial example in C++ would be using 'const &' instead of '&'. |
|
Optimized code is just a different thing from general code (if one is a productive programmer).