T
thebrath
I'm wondering if I will get faster code in any case if I use i1++.
Do you have any experiences?
Do you have any experiences?
thebrath said:I'm wondering if I will get faster code in any case if I use i1++.
Phlip said:If il++ calls an overloaded operator++(int), and if that is slower than
operaor++() (the ++il form), then it will be slower.
As a style thing, get in the habit of always typing ++il because it's
"weaker" than il++. It has less features.
That rule is just to make ++il easier to understand. The built-in version of
il++ can easily be optimized as fast as ++il.
Google for "premature optimization" now.
Alan said:Your question is in the FAQ. Please see:
http://www.parashift.com/c++-faq-lite/
thebrath said:I'm wondering if I will get faster code in any case if I use i1++.
Do you have any experiences?
Alan said:Sorry.  I meant to reply to the original poster, of course.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.