M
Michael B.
Hi!
I have a very simple question: Is it still true that pre variable
incrementation (like ++i) is faster than post incrementation (i++). I heard
that in modern compilers it makes no difference as the both versions are
optimised to one type of code. I've also never encountered any performance
difference in using e.g.
for(i=0; i < n; ++i) statement;
over
for(i=0; i < n; i++) statement;
However, nearly every methodology suggest using the first case.
Could you explain me why it is so, and if it makes any difference for VC++
or VC.NET?
Regards,
Michael
I have a very simple question: Is it still true that pre variable
incrementation (like ++i) is faster than post incrementation (i++). I heard
that in modern compilers it makes no difference as the both versions are
optimised to one type of code. I've also never encountered any performance
difference in using e.g.
for(i=0; i < n; ++i) statement;
over
for(i=0; i < n; i++) statement;
However, nearly every methodology suggest using the first case.
Could you explain me why it is so, and if it makes any difference for VC++
or VC.NET?
Regards,
Michael