Uh oh!
There was an error while loading. Please reload this page.
Reduce the cost of loading all built-ins targets - #95202
Conversation
This comment has been minimized.
This comment has been minimized.
lqd
commented
Mar 22, 2022
@bors try @rust-timer queue |
rust-timer
commented
Mar 22, 2022
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
bors
commented
Mar 22, 2022
⌛ Trying commit aeadc42389613ae25e868809e26100fa960da068 with merge f1bad32f32f5ed8240872cb387d09a3635f62297... |
bors
commented
Mar 22, 2022
☀️ Try build successful - checks-actions |
rust-timer
commented
Mar 22, 2022
Queued f1bad32f32f5ed8240872cb387d09a3635f62297 with parent b9c4067, future comparison URL. |
rust-timer
commented
Mar 22, 2022
Finished benchmarking commit (f1bad32f32f5ed8240872cb387d09a3635f62297): comparison url. Summary: This benchmark run shows 68 relevant regressions 😿 to instruction counts.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR led to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never |
Urgau
commented
Mar 22, 2022
@petrochenkov Do you want me to try with |
petrochenkov
commented
Mar 25, 2022
@Urgau |
Urgau
commented
Mar 25, 2022
Before measuring the cost (hopefully negative) of replacing every |
bjorn3
commented
Mar 25, 2022
@bors try @rust-timer queue |
rust-timer
commented
Mar 25, 2022
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
bors
commented
Mar 25, 2022
⌛ Trying commit 93a4d854318dcc9c758403213ebb77be98eaa02c with merge f2bca08ebf42b573bcacc3ae5a8dacabb8f03268... |
This comment has been minimized.
This comment has been minimized.
bors
commented
Mar 25, 2022
☀️ Try build successful - checks-actions |
rust-timer
commented
Mar 25, 2022
Queued f2bca08ebf42b573bcacc3ae5a8dacabb8f03268 with parent 903427b, future comparison URL. |
rust-timer
commented
Mar 26, 2022
Finished benchmarking commit (f2bca08ebf42b573bcacc3ae5a8dacabb8f03268): comparison url. Summary: This benchmark run shows 68 relevant regressions 😿 to instruction counts.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR led to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never |
petrochenkov
commented
Apr 3, 2022
The PR's title and description need to be updated. |
1424502 to
2191d2aCompare2191d2a to
303611cComparepetrochenkov
commented
Apr 3, 2022
Unit tests in |
There was a problem hiding this comment.
I don't think this adds much. It only saves 2 characters.
There was a problem hiding this comment.
I asked to add it in #95202 (comment) because it looks less noisy due to removing punctuation like ' and , even if it's only slightly shorter. (Not a strong opinion.)
303611c to
1a1f5b8CompareReview comments addressed or responded. Commits squashed to only 4, but can squash to only 1 if you prefer. @rustbot ready |
petrochenkov
commented
Apr 3, 2022
@bors r+ |
bors
commented
Apr 3, 2022
📌 Commit 1a1f5b8 has been approved by |
bors
commented
Apr 3, 2022
⌛ Testing commit 1a1f5b8 with merge 8a8b80634e8c439c8b36e3b3729a5094606ae9cd... |
Dylan-DPC
commented
Apr 3, 2022
@bors retry (yield to rollup containing this pr) |
Rollup of 5 pull requests Successful merges: - rust-lang#95202 (Reduce the cost of loading all built-ins targets) - rust-lang#95553 (Don't emit non-asm contents error for naked function composed of errors) - rust-lang#95613 (Fix rustdoc attribute display) - rust-lang#95617 (Fix &mut invalidation in ptr::swap doctest) - rust-lang#95618 (core: document that the align_of* functions return the alignment in bytes) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This PR started by measuring the exact slowdown of checking of well known conditional values.
Than this PR implemented some technics to reduce the cost of loading all built-ins targets.
cf. #82450 (comment)