-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Add vectored positioned I/O on Unix #89518
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
Drive by random comment. On line 135:
Shouldn't that be |
Well, I copied Anyway, |
Seems reasonable enough. r? @joshtriplett for T-libs-api review as new unstable API |
This seems reasonable to me. I think we may want ReadBuf versions of all of these in the future, but that can be a separate PR. @bors r+ |
📌 Commit 2265bef has been approved by |
…htriplett Add vectored positioned I/O on Unix Add methods for vectored I/O with an offset on `File` for `unix` under `#![feature(unix_file_vectored_at)]`. The new methods are wrappers around `preadv` and `pwritev`. Tracking issue: rust-lang#89517
Build failed in a rollup ( #89763 (comment) )
@bors r- |
I figured out that Now |
☔ The latest upstream changes (presumably #81156) made this pull request unmergeable. Please resolve the merge conflicts. |
e7967df
to
00de714
Compare
Rebased |
Wild guess: To fix this, we could either disable |
Our Android minimum is increasing to Android KitKat. That's lower than Marshmallow, the Oct 2015 release. I need more coffee before I remember the details of how weak symbol linkage works, but what we do here has to work on KitKat and Lollipop, so go with whichever feels right there. |
I edited the PR to:
@rustbot label -S-waiting-on-author +S-waiting-on-review |
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.
Bad news, I looked it up and it seems this was only introduced relatively late in the game by macOS (and iOS). It seems even #104385 won't raise the minimum supported versions high enough to guarantee pwritev on those platforms.
03afae1
to
d760da4
Compare
d760da4
to
92f35b3
Compare
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.
Huzzah, let's see if this goes or if it tells us to do more.
@bors r+
Not again? |
☀️ Test successful - checks-actions |
Finished benchmarking commit (0fbfc3e): comparison URL. Overall result: ❌ regressions - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @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.
CyclesResultsThis 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.
|
Small regression in Diesel which has started to show some bimodality. I think it's safe to call this triaged. @rustbot label +perf-regression-triaged |
Add methods for vectored I/O with an offset on
File
forunix
under#![feature(unix_file_vectored_at)]
.The new methods are wrappers around
preadv
andpwritev
.Tracking issue: #89517