Skip to content

Encode shorthands for spans in metadata. #113850

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

Merged
merged 1 commit into from
Jul 19, 2023
Merged

Conversation

cjgillot
Copy link
Contributor

@cjgillot cjgillot commented Jul 19, 2023

Spans occupy a typically large proportion of metadata.
This PR deduplicates encoded spans in order to reduce encoded length.

@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 Jul 19, 2023
@cjgillot
Copy link
Contributor Author

@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 Jul 19, 2023
@bors
Copy link
Collaborator

bors commented Jul 19, 2023

⌛ Trying commit d73fdaacd72b82107467b30d547496d2517ad625 with merge 3fe9b8f877a65dfbdfe4b12565d256386178bf06...

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Collaborator

bors commented Jul 19, 2023

☀️ Try build successful - checks-actions
Build commit: 3fe9b8f877a65dfbdfe4b12565d256386178bf06 (3fe9b8f877a65dfbdfe4b12565d256386178bf06)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (3fe9b8f877a65dfbdfe4b12565d256386178bf06): comparison URL.

Overall result: ❌✅ regressions and improvements - no 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.

@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
Regressions ❌
(secondary)
0.9% [0.2%, 1.2%] 5
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.6% [-0.6%, -0.6%] 2
All ❌✅ (primary) - - 0

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.7% [0.7%, 3.7%] 53
Regressions ❌
(secondary)
2.4% [1.1%, 4.4%] 23
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 1.7% [0.7%, 3.7%] 53

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)
1.2% [1.0%, 1.3%] 2
Regressions ❌
(secondary)
5.0% [2.0%, 7.7%] 5
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-5.6% [-6.0%, -5.4%] 3
All ❌✅ (primary) 1.2% [1.0%, 1.3%] 2

Binary size

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)
1.4% [1.4%, 1.4%] 6
Improvements ✅
(primary)
-2.2% [-7.8%, -0.1%] 117
Improvements ✅
(secondary)
-3.2% [-12.3%, -0.0%] 64
All ❌✅ (primary) -2.2% [-7.8%, -0.1%] 117

Bootstrap: 647.294s -> 647.078s (-0.03%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jul 19, 2023
@cjgillot cjgillot marked this pull request as ready for review July 19, 2023 12:23
@cjgillot
Copy link
Contributor Author

Instruction count results are not very interesting. Meanwhile, we get up to 12% reduction of metadata size.

r? compiler

@compiler-errors
Copy link
Member

Awesome -- straightforward impl and great to see it has such an effect on metadata.

r? @compiler-errors @bors r+

@bors
Copy link
Collaborator

bors commented Jul 19, 2023

📌 Commit 186be72 has been approved by compiler-errors

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 19, 2023
@bors
Copy link
Collaborator

bors commented Jul 19, 2023

⌛ Testing commit 186be72 with merge fdfcdad...

@bors
Copy link
Collaborator

bors commented Jul 19, 2023

☀️ Test successful - checks-actions
Approved by: compiler-errors
Pushing fdfcdad to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jul 19, 2023
@bors bors merged commit fdfcdad into rust-lang:master Jul 19, 2023
@rustbot rustbot added this to the 1.73.0 milestone Jul 19, 2023
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (fdfcdad): comparison URL.

Overall result: ❌✅ regressions and improvements - no action needed

@rustbot label: -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.3% [0.3%, 0.3%] 1
Regressions ❌
(secondary)
0.9% [0.3%, 1.5%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.6% [-0.6%, -0.6%] 2
All ❌✅ (primary) 0.3% [0.3%, 0.3%] 1

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.7% [0.6%, 3.5%] 53
Regressions ❌
(secondary)
2.5% [1.2%, 5.8%] 24
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 1.7% [0.6%, 3.5%] 53

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)
3.8% [1.0%, 7.4%] 15
Regressions ❌
(secondary)
5.9% [2.3%, 8.6%] 4
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-5.3% [-5.9%, -5.0%] 3
All ❌✅ (primary) 3.8% [1.0%, 7.4%] 15

Binary size

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)
1.4% [1.4%, 1.4%] 6
Improvements ✅
(primary)
-2.2% [-7.8%, -0.1%] 117
Improvements ✅
(secondary)
-3.2% [-12.3%, -0.0%] 64
All ❌✅ (primary) -2.2% [-7.8%, -0.1%] 117

Bootstrap: 647.294s -> 647.681s (0.06%)

@cjgillot cjgillot deleted the span-shorthand branch July 19, 2023 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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