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

simplify.rs smallvecs #110524

Closed
wants to merge 1 commit into from
Closed

Conversation

miguelraz
Copy link
Contributor

As suggested by @Nilstrieb here #110477 (comment), I tried swapping out a few vecs for SmallVecs.

Let's run some bots to see if it can help.

r? @ghost

@rustbot rustbot added 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. labels Apr 19, 2023
@rustbot
Copy link
Collaborator

rustbot commented Apr 19, 2023

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

@workingjubilee
Copy link
Member

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

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

bors commented Apr 19, 2023

⌛ Trying commit 3a37978 with merge 4a7b92c1c3a0bc0dd104b348ba280413e6c6c4f6...

@bors
Copy link
Contributor

bors commented Apr 19, 2023

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

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (4a7b92c1c3a0bc0dd104b348ba280413e6c6c4f6): comparison URL.

Overall result: ❌ regressions - 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-perf +perf-regression

Instruction count

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

mean range count
Regressions ❌
(primary)
0.6% [0.4%, 0.7%] 3
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.6% [0.4%, 0.7%] 3

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.

mean range count
Regressions ❌
(primary)
1.9% [1.3%, 2.5%] 4
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 1.9% [1.3%, 2.5%] 4

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.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
5.3% [4.9%, 5.5%] 3
Improvements ✅
(primary)
-2.8% [-4.4%, -1.4%] 8
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -2.8% [-4.4%, -1.4%] 8

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Apr 19, 2023
@workingjubilee
Copy link
Member

workingjubilee commented Apr 19, 2023

This doesn't seem to be as profitable, so while we could continue down this line by e.g. tweaking the numbers on N in [BasicBlock; N], we should probably just close this.

@miguelraz
Copy link
Contributor Author

Fair. Science was made!

@miguelraz miguelraz closed this Apr 19, 2023
@miguelraz miguelraz deleted the mir-passes-smol-vecs branch April 19, 2023 17:40
@Noratrieb
Copy link
Member

I think you should make a PR to link this PR in a comment in the source. If you don't do that, people are doomed to repeat this without knowing it was already done.

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.

6 participants