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

malloc-bind: Use likely/unlikely #111

Closed
joshlf opened this issue Oct 17, 2017 · 0 comments
Closed

malloc-bind: Use likely/unlikely #111

joshlf opened this issue Oct 17, 2017 · 0 comments

Comments

@joshlf
Copy link
Collaborator

joshlf commented Oct 17, 2017

In malloc-bind, many of the branches taken in many functions have a particular branch that should be considered by the optimizer to be more likely (e.g., free being called with a NULL pointer is much less likely than with a non-NULL pointer). We should use Rust's likely and unlikely intrinsics to provide optimization hints to the compiler.

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

No branches or pull requests

1 participant