]> Cypherpunks repositories - gostls13.git/commit
bufio: Write and WriteString cleanup
authorEvan Shaw <chickencha@gmail.com>
Mon, 4 Apr 2011 19:57:10 +0000 (15:57 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 4 Apr 2011 19:57:10 +0000 (15:57 -0400)
commit06ee80d6ebfc9ec2229d1e10f4d1a2951fb2600f
tree0330d6e10cdd3b26375a6baded6e654a03fe3e60
parent5fd0a749874a2784dbef57d4ec9c07429bcc0896
bufio: Write and WriteString cleanup

Write never writes less than the buffer size and WriteString takes advantage
of the copy built-in to improve write efficiency.

R=rsc, ality, rog
CC=golang-dev
https://golang.org/cl/4344060
src/pkg/bufio/bufio.go