Two studies in compiler optimisations

13 points by eatonphil


snej

This can have the unexpected consequence of making builds with assertions enabled faster in some cases; we can restore performance by replacing disabled assertions with assume attributes, which have no runtime impact.

The assert macro should turn into an [[assume …]] directive when NDEBUG is defined.