Descriptioncmd/gc, runtime: inline append in frontend.
A new transformation during walk turns append calls
into a combination of growslice and memmove.
benchmark old ns/op new ns/op delta
BenchmarkAppend 141 141 +0.00%
BenchmarkAppend1Byte 18 11 -39.56%
BenchmarkAppend4Bytes 19 10 -42.63%
BenchmarkAppend7Bytes 18 10 -42.16%
BenchmarkAppend8Bytes 18 10 -40.44%
BenchmarkAppend15Bytes 19 11 -41.67%
BenchmarkAppend16Bytes 19 11 -41.97%
BenchmarkAppend32Bytes 23 14 -38.82%
BenchmarkAppendStr1Byte 14 10 -23.78%
BenchmarkAppendStr4Bytes 14 11 -21.13%
BenchmarkAppendStr8Bytes 14 10 -25.17%
BenchmarkAppendStr16Bytes 19 11 -41.45%
BenchmarkAppendStr32Bytes 18 14 -19.44%
BenchmarkAppendSpecialCase 62 63 +1.77%
Patch Set 1 #Patch Set 2 : diff -r 9b8afda16f02 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 9b8afda16f02 https://go.googlecode.com/hg/ #
Total comments: 3
Patch Set 4 : diff -r 75118231847b https://go.googlecode.com/hg/ #
Total comments: 2
Patch Set 5 : diff -r 0f036b4b1da5 https://go.googlecode.com/hg/ #Patch Set 6 : diff -r a6d1a3f0411a https://go.googlecode.com/hg/ #
MessagesTotal messages: 15
|