mirror of
https://github.com/golang/go
synced 2024-11-26 00:38:00 -07:00
fdc4ce6ec7
This only affects calls where both ReaderFrom and WriterTo are implemented. WriterTo can issue one large write, while ReaderFrom must Read until EOF, potentially reallocating when out of memory. With one large Write, the Writer only needs to allocate once. This also helps in ioutil.Discard since we can avoid copying memory when the Reader implements WriterTo. R=golang-dev, dsymonds, remyoudompheng, bradfitz CC=golang-dev, minux.ma https://golang.org/cl/9462044 |
||
---|---|---|
.. | ||
ioutil | ||
io_test.go | ||
io.go | ||
multi_test.go | ||
multi.go | ||
pipe_test.go | ||
pipe.go |