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

lazily reveal opaque types during ctfe in typeck #102657

Closed
wants to merge 1 commit into from

Conversation

lcnr
Copy link
Contributor

@lcnr lcnr commented Oct 4, 2022

implements the idea mentioned in #101478 (comment)

r? @oli-obk

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Oct 4, 2022
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 4, 2022
@lcnr lcnr force-pushed the no-reveal-all branch 2 times, most recently from e0053f6 to 9f0147b Compare October 4, 2022 13:59
@lcnr
Copy link
Contributor Author

lcnr commented Oct 4, 2022

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 4, 2022
@bors
Copy link
Contributor

bors commented Oct 4, 2022

⌛ Trying commit 9f0147b3322caa1458d1b18d3131565dc8cb4e56 with merge 4f82b8341b3d3e2d0102a70d4c76a13fa7570528...

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Oct 4, 2022

☀️ Try build successful - checks-actions
Build commit: 4f82b8341b3d3e2d0102a70d4c76a13fa7570528 (4f82b8341b3d3e2d0102a70d4c76a13fa7570528)

@rust-timer
Copy link
Collaborator

Queued 4f82b8341b3d3e2d0102a70d4c76a13fa7570528 with parent ead49f0, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (4f82b8341b3d3e2d0102a70d4c76a13fa7570528): comparison URL.

Overall result: ❌✅ regressions and improvements - ACTION NEEDED

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 may lead to changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please fix the regressions and do another perf run. If the next run shows neutral or positive results, the label will be automatically removed.

@bors rollup=never
@rustbot label: +S-waiting-on-review -S-waiting-on-perf +perf-regression

Warning ⚠: The following benchmark(s) failed to build:

  • deeply-nested-multi

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean1 range count2
Regressions ❌
(primary)
0.4% [0.2%, 0.8%] 5
Regressions ❌
(secondary)
3.7% [0.7%, 9.0%] 11
Improvements ✅
(primary)
-0.4% [-0.6%, -0.2%] 16
Improvements ✅
(secondary)
-0.6% [-1.1%, -0.4%] 5
All ❌✅ (primary) -0.2% [-0.6%, 0.8%] 21

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean1 range count2
Regressions ❌
(primary)
0.4% [0.4%, 0.4%] 1
Regressions ❌
(secondary)
3.0% [1.7%, 4.7%] 3
Improvements ✅
(primary)
-2.9% [-2.9%, -2.9%] 1
Improvements ✅
(secondary)
-2.0% [-3.0%, -1.0%] 4
All ❌✅ (primary) -1.2% [-2.9%, 0.4%] 2

Cycles

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean1 range count2
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
4.0% [2.1%, 9.7%] 11
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Footnotes

  1. the arithmetic mean of the percent change 2 3

  2. number of relevant changes 2 3

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Oct 4, 2022
@lcnr lcnr force-pushed the no-reveal-all branch 2 times, most recently from 7683928 to 64708cf Compare October 5, 2022 10:37
@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Oct 7, 2022

☔ The latest upstream changes (presumably #101632) made this pull request unmergeable. Please resolve the merge conflicts.

@lcnr lcnr closed this Oct 24, 2022
@lcnr lcnr reopened this Oct 24, 2022
@lcnr
Copy link
Contributor Author

lcnr commented Oct 26, 2022

closing as the maintenance cost of this approach feels too high. Laid out my reasoning in https://hackmd.io/@lcnr/BkNePDPlo and intend to open a pr in the near future adding tests and removing some of the reveal_all_normalized calls.

@lcnr lcnr closed this Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perf-regression Performance regression. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants