Re:Clang Format Tanks Performance
by sanxiyn on Wednesday November 20, 2019 @02:25AM
(#21581788)
You can disable include reordering in clang-format. I don't think this is a bug, because I see the default here as a matter of policy decision.
[ Parent
| on HN ]
Re:Clang Format Tanks Performance
by HelloNurse on Wednesday November 20, 2019 @09:46AM
(#21584310)
Given that reordering includes can have consequences, reordering includes blindly and casually like the OP is a form of Russian roulette: an order that works should be preserved until it stops working.
The article describes false complexity caused by looking atr the issue in the wrong way: a "mysterious" performance problem, to be diagnosed, rather than the obvious consequence of a broken workflow that includes an extremely hazardous operation.
In a voluntary header reordering experiment, all kinds of breakage could be detected with a trivial before and after comparison of compiled code.