17 Sep
2005
17 Sep
'05
2:31 p.m.
On September 17, 2005 5:29:18 PM +0200 Nicolas Baradakis <nbk@sitadelle.com> wrote:
Among other things, Primoz Bratanic has send to me a patch that adds attributes to some of the functions. I think it is a good idea, I can see only avantages to it: - it makes the code more explicit for the reader. - it helps the compiler to produce a more performant binary. - it makes audit easier.
It's less portable. It adds significant noise. Most attributes do not help the compiler produce a more "performant" binary. Branch prediction is one that helps, but off the top of my head I can't think of any others. Personally, I hate them, but I understand why folks use them. So I'm not objecting to their use, I'm just being argumentative. :-) -frank