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

Stabilize Utf8Chunks #123909

Merged
merged 1 commit into from
Apr 26, 2024
Merged

Stabilize Utf8Chunks #123909

merged 1 commit into from
Apr 26, 2024

Conversation

dtolnay
Copy link
Member

@dtolnay dtolnay commented Apr 14, 2024

Pending FCP in #99543.

This PR includes the proposed modification in rust-lang/libs-team#190 as agreed in #99543 (comment).

@rustbot
Copy link
Collaborator

rustbot commented Apr 14, 2024

r? @joboet

rustbot has assigned @joboet.
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-libs Relevant to the library team, which will review and decide on the PR/issue. labels Apr 14, 2024
@joboet joboet added S-waiting-on-fcp Status: PR is in FCP and is awaiting for FCP to complete. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 15, 2024
@dtolnay
Copy link
Member Author

dtolnay commented Apr 15, 2024

@bors try

I'd like to try crater to find out whether anything is using bstr's Utf8Chunk::incomplete (#99543 (comment)). If it is, this PR would break it by making libcore's utf8_chunks() take precedence over bstr's ByteSlice extension trait. If there is widespread breakage, we need to discuss adding incomplete before stabilizing this feature, and finding out about so many uses would help justify doing so. If there is no breakage, then it's a signal we do not need to add incomplete because nobody has real-world uses for it.

@bors
Copy link
Contributor

bors commented Apr 15, 2024

⌛ Trying commit 47ca0ce with merge 3b6ef52...

bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 15, 2024
Stabilize `Utf8Chunks`

Pending FCP in rust-lang#99543.

This PR includes the proposed modification in rust-lang/libs-team#190 as agreed in rust-lang#99543 (comment).
@bors
Copy link
Contributor

bors commented Apr 15, 2024

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

@dtolnay
Copy link
Member Author

dtolnay commented Apr 15, 2024

@craterbot check

@craterbot
Copy link
Collaborator

👌 Experiment pr-123909 created and queued.
🤖 Automatically detected try build 3b6ef52
🔍 You can check out the queue and this experiment's details.

ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

@craterbot craterbot added S-waiting-on-crater Status: Waiting on a crater run to be completed. and removed S-waiting-on-fcp Status: PR is in FCP and is awaiting for FCP to complete. labels Apr 15, 2024
@craterbot
Copy link
Collaborator

🚧 Experiment pr-123909 is now running

ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

@craterbot
Copy link
Collaborator

🎉 Experiment pr-123909 is completed!
📊 6 regressed and 0 fixed (438478 total)
📰 Open the full report.

⚠️ If you notice any spurious failure please add them to the blacklist!
ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

@craterbot craterbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-crater Status: Waiting on a crater run to be completed. labels Apr 19, 2024
joboet added a commit to joboet/janetrs that referenced this pull request Apr 19, 2024
@joboet
Copy link
Member

joboet commented Apr 19, 2024

That doesn't look too bad! As far as I can tell, janetrs is the only regression, the other ones are spurious or use it as a dependency. I opened GrayJack/janetrs#10 to make it resilient against this.

@dtolnay dtolnay mentioned this pull request Apr 19, 2024
4 tasks
@joboet joboet added S-waiting-on-fcp Status: PR is in FCP and is awaiting for FCP to complete. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 20, 2024
@dtolnay
Copy link
Member Author

dtolnay commented Apr 21, 2024

@rustbot ready

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 21, 2024
@dtolnay dtolnay removed the S-waiting-on-fcp Status: PR is in FCP and is awaiting for FCP to complete. label Apr 21, 2024
GrayJack pushed a commit to GrayJack/janetrs that referenced this pull request Apr 22, 2024
library/core/src/str/lossy.rs Outdated Show resolved Hide resolved
@joboet joboet removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 24, 2024
@joboet joboet added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Apr 24, 2024
@dtolnay dtolnay added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 24, 2024
Copy link
Member

@joboet joboet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!
@bors r+

@dtolnay
Copy link
Member Author

dtolnay commented Apr 26, 2024

@bors r=joboet

@bors
Copy link
Contributor

bors commented Apr 26, 2024

📌 Commit 61cf004 has been approved by joboet

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 Apr 26, 2024
@bors
Copy link
Contributor

bors commented Apr 26, 2024

⌛ Testing commit 61cf004 with merge 4d570ee...

@bors
Copy link
Contributor

bors commented Apr 26, 2024

☀️ Test successful - checks-actions
Approved by: joboet
Pushing 4d570ee to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Apr 26, 2024
@bors bors merged commit 4d570ee into rust-lang:master Apr 26, 2024
11 checks passed
@rustbot rustbot added this to the 1.79.0 milestone Apr 26, 2024
@dtolnay dtolnay deleted the utf8chunks branch April 26, 2024 19:58
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (4d570ee): comparison URL.

Overall result: ❌ regressions - ACTION NEEDED

Next Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please open an issue or create a new PR that fixes the regressions, add a comment linking to the newly created issue or PR, and then add the perf-regression-triaged label to this PR.

@rustbot label: +perf-regression
cc @rust-lang/wg-compiler-performance

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.5% [0.2%, 1.1%] 11
Regressions ❌
(secondary)
0.8% [0.3%, 1.2%] 19
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.5% [0.2%, 1.1%] 11

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)
- - 0
Regressions ❌
(secondary)
3.3% [3.3%, 3.3%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

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)
2.2% [2.2%, 2.2%] 1
Regressions ❌
(secondary)
2.0% [2.0%, 2.1%] 3
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.828s -> 673.336s (0.22%)
Artifact size: 315.91 MiB -> 315.94 MiB (0.01%)

@rustbot rustbot added the perf-regression Performance regression. label Apr 26, 2024
@lqd
Copy link
Member

lqd commented Apr 26, 2024

These are all doc regressions, which seems fine for perf triage purposes imo.

@Mark-Simulacrum
Copy link
Member

I'm not so convinced. This should be a much more minor change IMO -- it might be exposing some bad performance in rustdoc (maybe some bad behavior with inherent impls?) and could be worth digging into further. Not marking as triaged yet, will try to spend some time here this week.

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. perf-regression Performance regression. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants