Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is __builtin_expect necessary #6

Closed
jalla2000 opened this issue Nov 23, 2013 · 1 comment
Closed

Is __builtin_expect necessary #6

jalla2000 opened this issue Nov 23, 2013 · 1 comment

Comments

@jalla2000
Copy link

Have you done any testing on performance in regards to using __builtin_expect? Does it give any performance increase at all?

@znort987
Copy link
Owner

Not necessarily, and not its primary purpose.
That's just a good habit to have when you write code, shows you're
actually thinking about what your code does as you write it.
Think of it as something that lives in the same space as thread safety annotations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants