]> Cypherpunks repositories - gostls13.git/commit
runtime: special-case small byte appends.
authorRob Pike <r@golang.org>
Fri, 1 Mar 2013 22:31:26 +0000 (14:31 -0800)
committerRob Pike <r@golang.org>
Fri, 1 Mar 2013 22:31:26 +0000 (14:31 -0800)
commit8cfed59941655f6a77af065f0196dff6450f52a7
treec63fe33fa8687cd172de9d19ec4131a10ed88ebd
parent0598114a90306b9dc8cc0e38a7566448308946d4
runtime: special-case small byte appends.
Update #3679.

BenchmarkAppend1Byte            484          199  -58.88%
BenchmarkAppend4Bytes           829          286  -65.50%
BenchmarkAppend8Bytes           484          365  -24.59%
BenchmarkAppend16Bytes          484          498   +2.89%
BenchmarkAppend32Bytes          486          484   -0.41%

R=iant, dave, rsc
CC=golang-dev
https://golang.org/cl/7443047
src/pkg/runtime/append_test.go
src/pkg/runtime/slice.c