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

Use an uninitialized buffer in GenericRadix::fmt_int, like in Display::fmt for numeric types #49103

Merged
merged 1 commit into from
Mar 26, 2018

Conversation

glandium
Copy link
Contributor

@glandium glandium commented Mar 17, 2018

The code using a slice of that buffer is only ever going to use
bytes that are subsequently initialized.

…::fmt for numeric types

The code using a slice of that buffer is only ever going to use
bytes that are subsequently initialized.
@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @cramertj (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 17, 2018
@shepmaster shepmaster changed the title Use an uninitialized buffer in GenericRadix::fmt_int, like in Display… Use an uninitialized buffer in GenericRadix::fmt_int, like in Display::fmt for numeric types Mar 23, 2018
@shepmaster
Copy link
Member

As a drive-by comment, have you performed any profiling to see that this change has any benefit?

@shepmaster shepmaster added the T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. label Mar 23, 2018
@shepmaster
Copy link
Member

Ping from triage, @cramertj — will you have time to review this soon?

@cramertj
Copy link
Member

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Mar 25, 2018

📌 Commit 38cbdcd has been approved by cramertj

@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 Mar 25, 2018
kennytm added a commit to kennytm/rust that referenced this pull request Mar 26, 2018
Use an uninitialized buffer in GenericRadix::fmt_int, like in Display::fmt for numeric types

The code using a slice of that buffer is only ever going to use
bytes that are subsequently initialized.
TimNN added a commit to TimNN/rust that referenced this pull request Mar 26, 2018
Use an uninitialized buffer in GenericRadix::fmt_int, like in Display::fmt for numeric types

The code using a slice of that buffer is only ever going to use
bytes that are subsequently initialized.
bors added a commit that referenced this pull request Mar 26, 2018
Rollup of 7 pull requests

- Successful merges: #48693, #48932, #49103, #49170, #49187, #49346, #49353
- Failed merges:
@bors bors merged commit 38cbdcd into rust-lang:master Mar 26, 2018
@glandium
Copy link
Contributor Author

As a drive-by comment, have you performed any profiling to see that this change has any benefit?

FWIW, it didn't make a significant difference in my use cases, but I suspect it can for some embedded platforms.

@glandium glandium deleted the uninitialized branch March 26, 2018 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants