]> Cypherpunks repositories - gostls13.git/commit
go/printer: use strings.Split instead of specialized code
authorRobert Griesemer <gri@golang.org>
Thu, 28 Mar 2013 22:47:39 +0000 (15:47 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 28 Mar 2013 22:47:39 +0000 (15:47 -0700)
commitf38811979cefe7cd61b34c5580e2d10f65f243db
treedfc6a6844164d529383c75f5bb84f1d848b162a1
parent47ec6e23d23aa95797aed517388845e7c0e14a45
go/printer: use strings.Split instead of specialized code

With the faster strings package, the difference between
the specialized code and strings.Split is in the noise:

benchmark         old ns/op    new ns/op    delta
BenchmarkPrint     16724291     16686729   -0.22%

(Measured on a Mac Pro, 2.8GHz Quad-core Intel Xeon,
4GB 800 MHz DDR2, Mac OS X 10.8.3)

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/8100044
src/pkg/go/printer/printer.go