Subject: Re: [boost] [xpressive] Performance Tuning?
From: Joel de Guzman (joel_at_[hidden])
Date: 2009-07-29 05:40:09
Edward Grace wrote:
> On 28 Jul 2009, at 18:17, Joel de Guzman wrote:
>> This time, I am using the benchmarking harness by David Abrahams,
>> Matthias Troyer, Michael Gauckler.
> There's some interesting trickery in there by the looks of things for
> eliminating the optimiser nastiness - that's not something I've thought
> about much I'll take a look.
The technique of using an accumulator to keep the whole system
"plugged" is one of the ideas you can use versus the need for
global variables, volatile, etc. This comment and code returning
from main says a lot:
// This is ultimately responsible for preventing all the test code
// from being optimized away. Change this to return 0 and you
// unplug the whole test's life support system.
return test::live_code != 0;
-- Joel de Guzman http://www.boostpro.com http://spirit.sf.net
Boost list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk