K
karthikbalaguru
I came across a nice example and info that claim that ++x is optimised
than x++.
Is it so ?
For example.
for(x = 0; x < 10; x++)
There is a simple fix for this, and it will optimize your loop, ever
so slightly.
for(x = 0; x < 10; ++x)
It can save milliseconds on your code rotations, for those using for
loops like this, this is a much faster way to parse through your
data.
Is it so ? How is it possible that ++x is faster than x++ ?
Thx in advans,
Karthik Balaguru
than x++.
Is it so ?
For example.
for(x = 0; x < 10; x++)
There is a simple fix for this, and it will optimize your loop, ever
so slightly.
for(x = 0; x < 10; ++x)
It can save milliseconds on your code rotations, for those using for
loops like this, this is a much faster way to parse through your
data.
Is it so ? How is it possible that ++x is faster than x++ ?
Thx in advans,
Karthik Balaguru