
on Fri Nov 16 2012, "Peter Dimov" <lists-AT-pdimov.com> wrote:
Nevin Liber wrote:
Now we are getting somewhere. Actual experience. Could you elaborate on the compilers and constructs that need to be hand optimized into equivalent code because the optimizers aren't doing it themselves?
Compilers are, in my experience, better at optimizing i < n loops than they are at optimizing i != end loops. They are better at constant-folding the n, too, which then helps with eventual unrolls.
+1
But why are we having this discussion at all? These are private members of the class; the author can do whatever he likes.
+10 -- Dave Abrahams BoostPro Computing Software Development Training http://www.boostpro.com Clang/LLVM/EDG Compilers C++ Boost