
4 May
2010
4 May
'10
2:32 p.m.
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