diff options
author | Rob Pike <r@golang.org> | 2014-10-17 12:37:41 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2014-10-17 12:37:41 -0700 |
commit | 4ad114508dcf5edeb4ea530ec3db2b0ecd8d4f89 (patch) | |
tree | 381cb227abc995d5d6019eb016eb3c8fce2abcaa /src/runtime/os_linux.go | |
parent | 800774510e3b6044f34fe95dbf24c1319bbbafed (diff) | |
download | go-4ad114508dcf5edeb4ea530ec3db2b0ecd8d4f89.tar.gz |
encoding/gob: custom array/slice decoders
Use go generate to write better loops for decoding arrays,
just as we did for encoding. It doesn't help as much,
relatively speaking, but it's still noticeable.
benchmark old ns/op new ns/op delta
BenchmarkDecodeComplex128Slice 202348 184529 -8.81%
BenchmarkDecodeFloat64Slice 135800 120979 -10.91%
BenchmarkDecodeInt32Slice 121200 105149 -13.24%
BenchmarkDecodeStringSlice 288129 278214 -3.44%
LGTM=rsc
R=rsc
CC=golang-codereviews
https://codereview.appspot.com/154420044
Diffstat (limited to 'src/runtime/os_linux.go')
0 files changed, 0 insertions, 0 deletions