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

#[inline] functions now that we no longer have any generics #55

Open
billythedummy opened this issue Jan 31, 2024 · 0 comments
Open

#[inline] functions now that we no longer have any generics #55

billythedummy opened this issue Jan 31, 2024 · 0 comments

Comments

@billythedummy
Copy link
Contributor

billythedummy commented Jan 31, 2024

https://matklad.github.io/2021/07/09/inline-in-rust.html:

That’s where the main usage of #[inline] comes from — it enables cross-crate inlining. Without #[inline], even the most trivial of functions can’t be inlined across the crate boundary. The benefit is not without a cost — the compiler implements this by compiling a separate copy of the #[inline] function with every crate it is used in, significantly increasing compile times.

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

1 participant