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

Consider marking error-handling functions cold #6101

Open
wthrowe opened this issue Jun 18, 2024 · 0 comments
Open

Consider marking error-handling functions cold #6101

wthrowe opened this issue Jun 18, 2024 · 0 comments

Comments

@wthrowe
Copy link
Member

wthrowe commented Jun 18, 2024

Most compilers support marking functions as "cold", meaning unlikely to be executed. One effect of this is to tell branch-prediction algorithms that branches leading to such calls are unlikely. We should consider adding such annotations to the internals of things like ERROR.

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