-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Describe why size_align
have not been inlined so far
#79827
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
Conversation
r? @kennytm (rust-highfive has picked a reviewer for you, use r? to override) |
@bors r+ rollup |
📌 Commit dc7325e411910d8f325af84c8ad162408249ffa7 has been approved by |
@bors rollup=never |
Oh, woops, sorry for the noise. It does look innocuous; might be worth adding a comment for posterity on why it's perf-sensitive/the way it is right now. |
r=me with a comment added, fwiw |
(i.e., a comment instead of the current change) |
For completeness' sake: @bors try @rust-timer queue |
Awaiting bors try build completion |
⌛ Trying commit dc7325e411910d8f325af84c8ad162408249ffa7 with merge 69c935bbedf41328fef53fd877e4a48df302d2f5... |
☀️ Try build successful - checks-actions |
Queued 69c935bbedf41328fef53fd877e4a48df302d2f5 with parent db85512, future comparison URL. |
Finished benchmarking try commit (69c935bbedf41328fef53fd877e4a48df302d2f5): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
Thanks for catching this @kennytm. What prompted me to made this change in the first place, was the number of codegen items created for Given the number of codegen item, the effect on partitioning likely generalizes, although I see no reason to except impact on quality of produced code to be in any particular direction, but since this is not captured by rustc perf benchmarks (except for rustc), leaving this as is seems like a good decision for now. I added a comment describing why the function wasn't inlined so far. |
size_align
size_align
have not been inlined so far
@bors rollup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me or Mark-Simulacrum after fixing comment
I wonder if calling the size_of and align_of intrinsics directly instead of the |
@bors r+ rollup |
📌 Commit cf5bd26 has been approved by |
☀️ Test successful - checks-actions |
Make `Layout::new::<T>()` a constant instead of multiple NullOps rust-lang#72189 and rust-lang#79827 suggest that this is perf-relevant, so let's see what happens. r? ghost
although it is used only in one place.