]> Cypherpunks repositories - gostls13.git/commit
undo CL 101330053 / c19c9a063fe8
authorRui Ueyama <ruiu@google.com>
Sun, 22 Jun 2014 22:26:30 +0000 (15:26 -0700)
committerRui Ueyama <ruiu@google.com>
Sun, 22 Jun 2014 22:26:30 +0000 (15:26 -0700)
commita200e0b8fda46dadb1474248f21d44a16bd92dd2
treed41cfe44b87f00f358f94b8f8fb05bb6b60dcd9b
parent5b342f78043389e35a6c8c6ee1030ae733570da1
undo CL 101330053 / c19c9a063fe8

sync.Pool is not supposed to be used everywhere, but is
a last resort.

««« original CL description
strings: use sync.Pool to cache buffer

benchmark                         old ns/op    new ns/op    delta
BenchmarkByteReplacerWriteString       3596         3094  -13.96%

benchmark                        old allocs   new allocs    delta
BenchmarkByteReplacerWriteString          1            0  -100.00%

LGTM=dvyukov
R=bradfitz, dave, dvyukov
CC=golang-codereviews
https://golang.org/cl/101330053
»»»

LGTM=dave
R=r, dave
CC=golang-codereviews
https://golang.org/cl/102610043
src/pkg/strings/replace.go
src/pkg/strings/replace_test.go