
19 Nov
2008
19 Nov
'08
5:35 p.m.
Quoting bjorn@4roald.org:
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