Boost logo

Boost :

Subject: Re: [boost] [review] Review of Outcome (starts Fri-19-May)
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2017-05-19 15:54:33

>> The hack is the above. We cache the address of the canonical singleton,
>> and the noinline seems to cause the optimiser to disregard the thread
>> fence and thus to not give up quickly. The resulting assembler generated
>> is greatly improved on MSVC, a single result<T> shrinks from ~260
>> opcodes to less than 5.
> As I use error categories extensively in my library, a blog post or
> article focusing on this technique would be useful (if it doesn't
> already exist).

It's a micro optimisation which only affects code bloat on one
particular compiler currently.. I didn't, and still don't, think it
worth writing up.


ned Productions Limited Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at