13 Sep
2010
13 Sep
'10
2:28 a.m.
On 06/09/2010 23:23, Ilya Murav'jov wrote:
- BOOST_FOREACH costs 0.1 sec - boost::function<> invocation costs 0.05 sec - boost::lambda::bind() with placeholders costs 0.1 sec - Boost.Range adaptor transformed() costs ~0.1 too As you can see, 10 boost::lambda::bind() slow down your compilation for whole 1 second!
Templates are memoized, so the cost of n instantiations is typically quite less than n times the cost of one instantiation.