]> Cypherpunks repositories - gostls13.git/commit
make io.ReadFile use Stat.Size as a hint for preallocation
authorRob Pike <r@golang.org>
Wed, 2 Dec 2009 05:44:24 +0000 (21:44 -0800)
committerRob Pike <r@golang.org>
Wed, 2 Dec 2009 05:44:24 +0000 (21:44 -0800)
commitf9810f1b12750e83d3b76f703b9956e390ee06e7
tree968d33c7400768deddcd4fa584febf91ec9d74df
parent49ebcfbb83104eba0dd32f3bcb74877b92555f6c
make io.ReadFile use Stat.Size as a hint for preallocation

R=rsc
CC=golang-dev
https://golang.org/cl/163069
src/pkg/io/utils.go