]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #102811 - the8472:bufread-memset, r=m-ou-se
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>
Wed, 12 Oct 2022 05:41:25 +0000 (11:11 +0530)
committerGitHub <noreply@github.com>
Wed, 12 Oct 2022 05:41:25 +0000 (11:11 +0530)
Use memset to initialize readbuf

The write loop was found to be slow in #102727

The proper fix is in #102760 but this might still help debug builds and code running under miri by using the write_bytes intrinsic instead of writing one byte at a time.


Trivial merge