-
Notifications
You must be signed in to change notification settings - Fork 1k
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
RFC: inlining #897
Comments
I didn't comment on this earlier because the answer is that I don't know. As far as I know, putting The counter-argument is that link-time optimisation does the same anyway, except at a different step of the compilation, and that therefore we don't need to inline across crates. |
Closing as it seems we agree that inlining isn't needed. |
Well, I don't know if what I said it's true. |
I think we do have a rough consensus by now that explicit |
This library has lots of inline attributes on functions. It seems like the pattern is that they are added when a function is only a few lines. However, from https://internals.rust-lang.org/t/when-should-i-use-inline/598/8 it seems like it is better to not use it in a library, let the compiler decide, and let library users use link-time optimisation if they want to have a super-fast binary. Any thoughts?
The text was updated successfully, but these errors were encountered: