May 28, 2022
I remember this was a topic at my university (20y ago).
Gist: ++i is more performant, as the compiler can increase it in place, while i++ requires writing to another variable.
I remember this was a topic at my university (20y ago).
Gist: ++i is more performant, as the compiler can increase it in place, while i++ requires writing to another variable.