|
Boost : |
Subject: Re: [boost] BOOST_FOREACH slow?
From: Peter Bartlett (pete_at_[hidden])
Date: 2008-11-19 12:35:18
Quoting bjorn_at_[hidden]:
> Ok, do anybody know of other compilers/libs that implement loop unrolling
> in std::for_each?
Are you looking for optimizations specifically for std::for_each other
than those done by the compiler for general for loops?
If so, possibly of interest is the fact that new in GCC 4.3 is the
(experimental) ability to call parallel versions of certain algorithms
in <algorithm> and <numeric> via OpenMP:
http://gcc.gnu.org/onlinedocs/libstdc++/manual/parallel_mode.html
This could put some distance between BOOST_FOREACH and std::for_each
for certain use cases though I haven't experimented myself.
Pete
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk