Files
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
..
2022-06-26 17:15:31 +01:00
2023-09-03 12:35:03 +05:30
2023-10-03 20:26:36 -04:00
2023-11-15 19:40:51 -05:00
2023-10-05 18:21:47 -04:00