]> Cypherpunks repositories - gostls13.git/commit
log: reduce allocations
authorRob Pike <r@golang.org>
Wed, 13 Oct 2010 00:27:14 +0000 (17:27 -0700)
committerRob Pike <r@golang.org>
Wed, 13 Oct 2010 00:27:14 +0000 (17:27 -0700)
commit712109f1f1c871498147d1ce44b6cff0b64e03e0
tree6886c5ee9c7c095f237d07d1d792545463bfb07a
parente787f8276d01786eda75e240b77727910106fe0f
log: reduce allocations
Use a bytes.Buffer in log writing instead of string concatenation.
Should reduce the number of allocations significantly.

R=rsc, r2
CC=golang-dev
https://golang.org/cl/2417042
src/pkg/log/log.go
src/pkg/log/log_test.go