-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Improve UEFI stdio #117174
Improve UEFI stdio #117174
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
r? workingjubilee |
98d0b71
to
6465ab4
Compare
6465ab4
to
3c544b3
Compare
|
@dvdhrm @workingjubilee Do you think read should ignore non-printable characters instead of returning an error? |
I think Err in that case is correct: we lost the input, effectively. There's lots of ways to suppress that kind of error if the programmer wants. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for improving this! Some comments inline.
I really think we should suppress unknown scancodes. This is what TTYs on linux do, so I think we should follow.
@rustbot author |
3c544b3
to
3c9cae1
Compare
@rustbot ready |
3c9cae1
to
d066bdf
Compare
☔ The latest upstream changes (presumably #117285) made this pull request unmergeable. Please resolve the merge conflicts. |
- Do not drop any character while reading - eabdf == Unsupported status - loop untill read character or error encountered Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
- is_ebadf always returns false - Allow reading partial characters to buffer - Allow full UTF-16 in stdin Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
d066bdf
to
1fbb00b
Compare
ping from triage: @workingjubilee have all your review concerns been addressed? |
Ah! Yes, it seems so! |
☀️ Test successful - checks-actions |
Finished benchmarking commit (026b3b8): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis 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.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 649.414s -> 648.961s (-0.07%) |
Fixed some things suggested in last PR: #116207
cc @dvdhrm
cc @nicholasbishop