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

rustc_serialize: don't allocate Strings as key for BTreeMap, when str is enough #91626

Merged
merged 1 commit into from
Dec 13, 2021

Conversation

klensy
Copy link
Contributor

@klensy klensy commented Dec 7, 2021

No description provided.

@rust-highfive
Copy link
Contributor

r? @petrochenkov

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 7, 2021
@klensy klensy changed the title rustc_serialize: don't allocate strings as key for BTreeMap, when str is enought rustc_serialize: don't allocate Strings as key for BTreeMap, when str is enought Dec 7, 2021
@petrochenkov
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented Dec 7, 2021

📌 Commit 1b27b69 has been approved by petrochenkov

@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 Dec 7, 2021
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Dec 7, 2021
rustc_serialize: don't allocate `String`s as key for `BTreeMap`, when `str` is enought
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Dec 8, 2021
rustc_serialize: don't allocate `String`s as key for `BTreeMap`, when `str` is enought
@klensy
Copy link
Contributor Author

klensy commented Dec 8, 2021

This should affect perf (at least, this is was idea), so @bors rollup=never

@bors
Copy link
Collaborator

bors commented Dec 8, 2021

@klensy: 🔑 Insufficient privileges: not in try users

@petrochenkov
Copy link
Contributor

@bors rollup=never

@apiraino apiraino added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Dec 9, 2021
@camelid camelid changed the title rustc_serialize: don't allocate Strings as key for BTreeMap, when str is enought rustc_serialize: don't allocate Strings as key for BTreeMap, when str is enough Dec 12, 2021
@bors
Copy link
Collaborator

bors commented Dec 13, 2021

⌛ Testing commit 1b27b69 with merge 6d6d089...

@bors
Copy link
Collaborator

bors commented Dec 13, 2021

☀️ Test successful - checks-actions
Approved by: petrochenkov
Pushing 6d6d089 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Dec 13, 2021
@bors bors merged commit 6d6d089 into rust-lang:master Dec 13, 2021
@rustbot rustbot added this to the 1.59.0 milestone Dec 13, 2021
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (6d6d089): comparison url.

Summary: This benchmark run did not return any relevant changes.

If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf.

@rustbot label: -perf-regression

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