rustc_span: Add conveniences for working with span formats by petrochenkov · Pull Request #125829 · rust-lang/rust (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation63 Commits3 Checks6 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

petrochenkov

This is the refactoring part of #125017.

@rustbot

r? @michaelwoerister

rustbot has assigned @michaelwoerister.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@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

May 31, 2024

@petrochenkov

This code is hot so if Fmt matches are not optimized away properly it may affect performance.
Also some additional #[inline] attributes may be needed.
@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@bors

bors added a commit to rust-lang-ci/rust that referenced this pull request

May 31, 2024

@bors

rustc_span: Add conveniences for working with span formats

Also

This is the refactoring part of rust-lang#125017.

@petrochenkov

@bors

☀️ Try build successful - checks-actions
Build commit: 0218d5e (0218d5ec26fcf9deca0409cee85473021083ee25)

@rust-timer

This comment has been minimized.

nnethercote

@rust-timer

Finished benchmarking commit (0218d5e): 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.2%, 1.3%] 139
Regressions ❌ (secondary) 0.8% [0.3%, 4.2%] 63
Improvements ✅ (primary) - - 0
Improvements ✅ (secondary) - - 0
All ❌✅ (primary) 0.6% [0.2%, 1.3%] 139

Max RSS (memory usage)

Results (primary -1.3%)

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.6% [2.0%, 5.2%] 2
Regressions ❌ (secondary) - - 0
Improvements ✅ (primary) -2.4% [-4.4%, -1.2%] 9
Improvements ✅ (secondary) - - 0
All ❌✅ (primary) -1.3% [-4.4%, 5.2%] 11

Cycles

Results (primary -0.1%, secondary 2.7%)

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.5% [1.2%, 1.8%] 4
Regressions ❌ (secondary) 4.2% [2.2%, 9.4%] 5
Improvements ✅ (primary) -1.1% [-1.6%, -0.8%] 7
Improvements ✅ (secondary) -1.1% [-1.3%, -0.9%] 2
All ❌✅ (primary) -0.1% [-1.6%, 1.8%] 11

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 672.771s -> 665.847s (-1.03%)
Artifact size: 318.83 MiB -> 318.87 MiB (0.01%)

@petrochenkov

@rust-timer

This comment has been minimized.

@bors

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 1, 2024

@bors

rustc_span: Add conveniences for working with span formats

Also

This is the refactoring part of rust-lang#125017.

@bors

☀️ Try build successful - checks-actions
Build commit: 225796f (225796f1e24215f734685da47f2474920c19adb9)

@rust-timer

This comment has been minimized.

@rust-timer

Finished benchmarking commit (225796f): 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.3% [0.2%, 0.6%] 54
Regressions ❌ (secondary) 0.7% [0.2%, 4.1%] 24
Improvements ✅ (primary) - - 0
Improvements ✅ (secondary) -0.5% [-0.6%, -0.5%] 3
All ❌✅ (primary) 0.3% [0.2%, 0.6%] 54

Max RSS (memory usage)

Results (primary -2.0%, secondary 3.9%)

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) 2.1% [2.1%, 2.1%] 1
Regressions ❌ (secondary) 3.9% [3.9%, 3.9%] 1
Improvements ✅ (primary) -2.4% [-4.4%, -1.0%] 13
Improvements ✅ (secondary) - - 0
All ❌✅ (primary) -2.0% [-4.4%, 2.1%] 14

Cycles

Results (primary 1.2%)

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) - - 0
Improvements ✅ (primary) - - 0
Improvements ✅ (secondary) - - 0
All ❌✅ (primary) 1.2% [1.0%, 1.3%] 2

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 667.702s -> 670.737s (0.45%)
Artifact size: 318.95 MiB -> 319.12 MiB (0.06%)

@bors

☀️ Try build successful - checks-actions
Build commit: cf4be1f (cf4be1f84d4df050aecb4bd9f87182537957187c)

@rust-timer

This comment has been minimized.

@rust-timer

Finished benchmarking commit (cf4be1f): comparison URL.

Overall result: ❌ regressions - 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.2% [0.2%, 0.2%] 1
Regressions ❌ (secondary) - - 0
Improvements ✅ (primary) - - 0
Improvements ✅ (secondary) - - 0
All ❌✅ (primary) 0.2% [0.2%, 0.2%] 1

Max RSS (memory usage)

Results (primary -0.5%)

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.6% [0.5%, 3.1%] 3
Regressions ❌ (secondary) - - 0
Improvements ✅ (primary) -6.5% [-6.5%, -6.5%] 1
Improvements ✅ (secondary) - - 0
All ❌✅ (primary) -0.5% [-6.5%, 3.1%] 4

Cycles

Results (primary 2.2%, secondary 2.9%)

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) 2.2% [2.2%, 2.2%] 1
Regressions ❌ (secondary) 2.9% [2.3%, 3.5%] 2
Improvements ✅ (primary) - - 0
Improvements ✅ (secondary) - - 0
All ❌✅ (primary) 2.2% [2.2%, 2.2%] 1

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 671.147s -> 671.409s (0.04%)
Artifact size: 320.41 MiB -> 320.36 MiB (-0.02%)

@petrochenkov

Hmm, the tt-muncher improvement from the previous run (#125829 (comment)) is gone, but at least it's neutral overall.

@michaelwoerister

@bors

📌 Commit 220f3ec has been approved by michaelwoerister

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

Jun 14, 2024

@petrochenkov

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Jun 14, 2024

@matthiaskrgr

…rister

rustc_span: Add conveniences for working with span formats

This is the refactoring part of rust-lang#125017.

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 14, 2024

@bors

…iaskrgr

Rollup of 8 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Jun 14, 2024

@matthiaskrgr

…rister

rustc_span: Add conveniences for working with span formats

This is the refactoring part of rust-lang#125017.

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 14, 2024

@bors

…iaskrgr

Rollup of 8 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 14, 2024

@bors

…iaskrgr

Rollup of 8 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Jun 15, 2024

@matthiaskrgr

…rister

rustc_span: Add conveniences for working with span formats

This is the refactoring part of rust-lang#125017.

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 15, 2024

@bors

…iaskrgr

Rollup of 7 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Jun 15, 2024

@matthiaskrgr

…rister

rustc_span: Add conveniences for working with span formats

This is the refactoring part of rust-lang#125017.

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 15, 2024

@bors

…iaskrgr

Rollup of 10 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 15, 2024

@bors

…iaskrgr

Rollup of 9 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Jun 15, 2024

@rust-timer

Rollup merge of rust-lang#125829 - petrochenkov:upctxt2, r=michaelwoerister

rustc_span: Add conveniences for working with span formats

This is the refactoring part of rust-lang#125017.

flip1995 pushed a commit to flip1995/rust-clippy that referenced this pull request

Jun 28, 2024

@workingjubilee

Labels

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.