From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-03-08 10:28:38
----- Original Message -----
From: "vesa_karvonen" <vesa_karvonen_at_[hidden]>
> That is quite interesting. Are you really saying that iteration using
> BOOST_PP_LIST_FOR_EACH_I() in this case is faster than when using
> boost::mpl::accumulate<>? The template metaprogramming version
> potentially does the iteration many more times than the pp
> metaprogramming version, but still it sounds quite odd. I suppose
> that with precompiled headers, the pp metaprogramming version should
> clearly be faster, because the iteration is then "unrolled".
I didn't analyze too deeply, but yes it was faster to use PP
metaprogramming than Template metaprogramming in this case, and one EDG
VAR has a bug in their backend which made it take forever, or nearly so.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk