User: Password:
Subscribe / Log in / New account

Likely unlikely()s

Likely unlikely()s

Posted Dec 21, 2010 13:58 UTC (Tue) by vonbrand (guest, #4458)
In reply to: Likely unlikely()s by jzbiciak
Parent article: Likely unlikely()s

It has been observed that programmers are terrible at guessing where their programs spend most of their time... and that should be much easier than predicting the frequency of some critical branch going one way or the other.

Best leave it alone, or only annotate when extensive measurements show a high bias (and the compiler gets it wrong).

(Log in to post comments)

Likely unlikely()s

Posted Dec 27, 2010 11:00 UTC (Mon) by tesarik (guest, #52705) [Link]

*the* compiler? which compiler?

Surely, gcc heuristic decisions change with the version...

Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds