$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] BOOST_FOREACH slow?
From: David Abrahams (dave_at_[hidden])
Date: 2008-11-17 14:59:54
on Mon Nov 17 2008, Eric Niebler <eric-AT-boost-consulting.com> wrote:
> Hansi wrote:
>> Hello,
>>
>> I have made a few tests with the performance of BOOST_FOREACH. The results are for
>> me unexpected slow...may be one has an idea if I make something wrong...
>
> <snip>
>
> During FOEACH's review, extensive performance tests showed FOREACH was
> only about 5% slower than the hand-coded equivalent on average.
Just curious: you didn't compare with std::for_each (e.g. to see the
effects of loop unrolling), did you?
-- Dave Abrahams BoostPro Computing http://www.boostpro.com