Skip to content

Commit

Permalink
Rollup merge of #118222 - the8472:copy-use-vec-write, r=m-ou-se
Browse files Browse the repository at this point in the history
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 rust-lang/rust#117576 (comment)
  • Loading branch information
matthiaskrgr committed Nov 28, 2023
2 parents 93defd2 + e1913c0 commit 8ea3070
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 8ea3070

Please sign in to comment.