Move std::io::Read to alloc::io#158544
Conversation
|
rustbot has assigned @Mark-Simulacrum. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
@rustbot blocked |
This comment has been minimized.
This comment has been minimized.
88d631d to
648506e
Compare
This comment has been minimized.
This comment has been minimized.
648506e to
b664186
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
b664186 to
6edd1ed
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
6edd1ed to
5d7f1a0
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
5d7f1a0 to
b3c4345
Compare
This comment has been minimized.
This comment has been minimized.
b3c4345 to
2869084
Compare
This comment has been minimized.
This comment has been minimized.
|
@rustbot ready |
|
@rustbot label -T-compiler -T-rustdoc |
|
|
||
| /// For the specialization of `Bytes::next`. | ||
| #[doc(hidden)] | ||
| #[unstable(feature = "core_io_internals", reason = "exposed only for libstd", issue = "none")] |
There was a problem hiding this comment.
Doesn't actually matter, but I guess this should be alloc_io_internals since Read can't be moved to core yet.
There was a problem hiding this comment.
Yeah I think I'll leave this one as-is if that's ok? Just makes things a tiny bit cleaner, even if the label isn't completely accurate.
Co-Authored-By: Clar Fon <15850505+clarfonthey@users.noreply.github.com>
Co-Authored-By: Clar Fon <15850505+clarfonthey@users.noreply.github.com>
|
Based on this comment from the |
|
I haven't fully reviewed this, but I'm going to mark this as blocked on figuring out the write regressions first. Since these all depend on each other, we probably want to figure out what to do there before continuing. @rustbot blocked |
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Move `std::io::Read` to `alloc::io`
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (234ef2c): comparison URL. Overall result: ❌ regressions - no action neededBenchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up. @rustbot label: -S-waiting-on-perf -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 1.0%, secondary -4.8%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -1.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 491.202s -> 490.122s (-0.22%) |
|
(The regressions are noise) |
|
I'm surprised this had no real regressions. Pleasantly surprised, but still. I'll draft up a PR adding |
|
Yeah, my best guess is that the regressions might be hiding in the code in |
View all comments
ACP: rust-lang/libs-team#755
Tracking issue: #154046
Split From: #156527
Blocked On: #158541Description
Moves
std::io::Readtoalloc::io. This is mostly a direct cut and paste, but with a large diff due to how many implementations need to be moved intoalloc. Blocked on #158541.There is some new code written for some of the
Readimplementations to account for theno_global_oom_handlingconfiguration, sinceVec::extend_from_sliceandString::push_strare unavailable. I've highlighted all of these such instances with review comments for clarity.Notes
alloc::ioandcore::io#154046 (comment) for a review order and broader context for this PR.