|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2006-12-15 13:48:01
"Gennadiy Rozental" <gennadiy.rozental_at_[hidden]> writes:
> "David Abrahams" <dave_at_[hidden]> wrote in message
> news:87psal1e9x.fsf_at_pereiro.luannocracy.com...
>> "Gennadiy Rozental" <gennadiy.rozental_at_[hidden]> writes:
>
>Just that after many years of optimizing
> performance critical code I gave up doing any "estimations". I was proven
> wrong too many times, so that even test program is not real prove. There
> are way too many factors that affect performance of real-life applications.
> Sometimes the same code compiled with different compilers of in different
> hardware will exhibit completely different performance pattern. We could
> talk about trends. And in this case I believe trends could be different
> depending on circumstances.
That's true in most cases, but there's no need to muddy this case with
uncertainties. If you think about it for just a few moments, you'll
see there's absolutely no way the tuple version could be worse, and
that it would take an optimizer of unheralded brilliance to make the
variant version as good.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk