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 |
|
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.
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
workingjubilee
left a comment
There was a problem hiding this comment.
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
Fileforunixunder#![feature(unix_file_vectored_at)].The new methods are wrappers around
preadvandpwritev.Tracking issue: #89517