You are viewing a single comment's thread.

view the rest of the comments →

0
1

[–] skruf [S] 0 points 1 point (+1|-0) ago  (edited ago)

Even though modern compilers optimize for either of these uses, I'm sure, the idea was that when post-incrementing (i++), 'i' here will return the value and then increment it, which apparently takes more time than pre-increment (++i) where you would increment and then get the new value.

Actually, I'm in the habit of pre-increment in the for-loops, I think it's more of an uncontrolled obsession than anything else...