rust/library/std/src/io
Matthias Krüger 97ef5a3b53
Rollup merge of #118222 - the8472:copy-use-vec-write, r=m-ou-se
unify read_to_end and io::copy impls for reading into a Vec

This ports over the initial probe (to avoid allocation) and the dynamic read sizing from the io::copy specialization to the `default_read_to_end` implementation which already had its own optimizations for different cases.

I think it should be a best-of-both now.

suggested by `@a1phyr` in https://github.com/rust-lang/rust/pull/117576#issuecomment-1803408492
2023-11-28 16:09:54 +01:00
..
buffered Rollup merge of #116750 - fintelia:seek_seek_relative, r=Mark-Simulacrum 2023-11-19 04:14:40 +09:00
copy unify read_to_end and io::copy impls for reading into a Vec 2023-11-26 18:13:36 +01:00
cursor attempt to optimise vectored write 2022-06-26 17:15:31 +01:00
error Move RawOsError defination to sys 2023-09-03 12:35:03 +05:30
impls std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
stdio Make default stdio lock() return 'static handles 2022-02-13 10:23:16 -05:00
util Rollup merge of #98154 - vidhanio:master, r=workingjubilee 2023-07-30 20:36:33 +02:00
copy.rs unify read_to_end and io::copy impls for reading into a Vec 2023-11-26 18:13:36 +01:00
cursor.rs Rollup merge of #98651 - mattfbacon:master, r=ChrisDenton 2023-03-27 08:46:51 +02:00
error.rs Bump version placeholders 2023-10-03 20:26:36 -04:00
impls.rs Substitute version placeholders 2023-11-15 19:40:51 -05:00
mod.rs Rollup merge of #118222 - the8472:copy-use-vec-write, r=m-ou-se 2023-11-28 16:09:54 +01:00
prelude.rs Use heading for std::prelude and not io::prelude 2021-01-05 17:52:24 -08:00
stdio.rs Add more diagnostic items for clippy 2023-10-05 18:21:47 -04:00
tests.rs Auto merge of #98943 - WilliamVenner:feat/bufread_skip_until, r=dtolnay 2023-11-23 22:28:14 +00:00
util.rs Replace version placeholders with 1.73.0 2023-08-22 06:57:00 -04:00