mirror of https://github.com/golang/go.git
Rather than having PipeWriter and PipeReader a wrapper type on pipe, make them have the same underlying memory representation and rely instead of simply casting the same *pipe pointer as either a *PipeReader or *PipeWriter to control the set of methods. This reduces the number of allocations by 2, going from a total of 6 down to 4 allocations. Change-Id: I09207a00c4b7afb44c7773d752c5628a07e24fda Reviewed-on: https://go-review.googlesource.com/c/go/+/473535 Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Joseph Tsai <joetsai@digital-static.net> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> |
||
|---|---|---|
| .. | ||
| fs | ||
| ioutil | ||
| example_test.go | ||
| export_test.go | ||
| io.go | ||
| io_test.go | ||
| multi.go | ||
| multi_test.go | ||
| pipe.go | ||
| pipe_test.go | ||