Descriptionreflect: avoid allocation during Type.Field
benchmark old ns/op new ns/op delta
BenchmarkCodeEncoder 54459459 53357932 -2.02%
BenchmarkCodeMarshal 56237601 55004241 -2.19%
BenchmarkCodeDecoder 127630262 126423185 -0.95%
BenchmarkCodeUnmarshal 128767843 125555821 -2.49%
BenchmarkCodeUnmarshalReuse 123195734 122623580 -0.46%
BenchmarkUnmarshalString 911 901 -1.10%
BenchmarkUnmarshalFloat64 822 830 +0.97%
BenchmarkUnmarshalInt64 748 748 +0.00%
BenchmarkSkipValue 1938584 1965871 +1.41%
benchmark old MB/s new MB/s speedup
BenchmarkCodeEncoder 35.63 36.37 1.02x
BenchmarkCodeMarshal 34.50 35.28 1.02x
BenchmarkCodeDecoder 15.20 15.35 1.01x
BenchmarkCodeUnmarshal 15.07 15.46 1.03x
BenchmarkSkipValue 113.75 112.17 0.99x
Fixes issue 2320.
Patch Set 1 #Patch Set 2 : diff -r 2186073bfe4e https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 2186073bfe4e https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 2186073bfe4e https://go.googlecode.com/hg/ #Patch Set 5 : code review 5371098: reflect: avoid allocation during Type.Field #Patch Set 6 : diff -r 978e354cd4e0 https://code.google.com/p/go/ #
MessagesTotal messages: 14
|
|||||||||||||||||||||||||||||||||||||