|
Boost : |
Subject: Re: [boost] Heads up - string_ref landing
From: Dave Abrahams (dave_at_[hidden])
Date: 2012-11-20 21:34:34
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk