Boost logo

Boost :

Subject: Re: [boost] [Bind] Interoperability of bind/mem_fn with transform_iterator
From: Samuel Debionne (debionne_at_[hidden])
Date: 2010-05-04 10:32:14


> Make your std::vector a global static variable or the compiler may fidn
> fun to remove all the hand-written code applied to it if no other
> operation liek i/o or whatever are done, thus giving you very fast
> execution time for no reason

Joel, thank you for the tip, I'm no benchmark expert. I made the change
you suggest. It seems that the penalty is a bit less for boost::mem_fn
(2.3 times slower) while boost::function remain 4.5 times slower.

Samuel Debionne


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk