rust/library/std/src/io
bors 64eb9ab869 Auto merge of #98324 - conradludgate:write-vectored-vec, r=Mark-Simulacrum
attempt to optimise vectored write

benchmarked:

old:
```
test io::cursor::tests::bench_write_vec                     ... bench:          68 ns/iter (+/- 2)
test io::cursor::tests::bench_write_vec_vectored            ... bench:         913 ns/iter (+/- 31)
```

new:
```
test io::cursor::tests::bench_write_vec                     ... bench:          64 ns/iter (+/- 0)
test io::cursor::tests::bench_write_vec_vectored            ... bench:         747 ns/iter (+/- 27)
```

More unsafe than I wanted (and less gains) in the end, but it still does the job
2022-06-28 06:25:19 +00:00
..
buffered Fix documentation for with_capacity and reserve families of methods 2022-06-19 20:46:49 +01:00
cursor attempt to optimise vectored write 2022-06-26 17:15:31 +01:00
error Use Box::new() instead of box syntax in std tests 2022-05-29 01:44:11 +02:00
impls std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
readbuf implement review suggestions 2021-11-02 22:47:28 -07:00
stdio Make default stdio lock() return 'static handles 2022-02-13 10:23:16 -05:00
util read_buf 2021-11-02 22:47:20 -07:00
copy.rs Warn that platform-specific behavior may change 2022-03-29 19:49:15 -07:00
cursor.rs attempt to optimise vectored write 2022-06-26 17:15:31 +01:00
error.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
impls.rs Remove redundant calls to reserve in impl Write for VecDeque 2022-06-09 19:10:09 +02:00
mod.rs update ioslice docs to use shared slices 2022-06-21 11:45:17 +02:00
prelude.rs Use heading for std::prelude and not io::prelude 2021-01-05 17:52:24 -08:00
readbuf.rs std::io: Modify some ReadBuf method signatures to return &mut Self 2022-05-03 17:52:52 +01:00
stdio.rs Move/rename lazy::Sync{OnceCell,Lazy} to sync::{Once,Lazy}Lock 2022-06-16 19:54:42 +04:00
tests.rs Update tests. 2022-03-11 17:38:29 +01:00
util.rs add safety comments 2021-11-02 22:47:26 -07:00