diff options
| author | Rob Pike <r@golang.org> | 2014-10-14 20:03:35 -0700 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2014-10-14 20:03:35 -0700 |
| commit | ae250ab227311aab7fd8dff22ae05592abd13bde (patch) | |
| tree | 33261b064848a851ade484e76bf61eb42d358f06 /src/os/exec/exec.go | |
| parent | fe8f799ef7b0124ff0a50f5ec590a70ad20d6ef2 (diff) | |
| download | go-ae250ab227311aab7fd8dff22ae05592abd13bde.tar.xz | |
encoding/gob: make encoding structs a little faster
FieldByIndex never returns an invalid Value, so the validity
test can be avoided if the field is not indirect.
BenchmarkGobEncode 12768642 12424022 -2.70%
BenchmarkGobEncode 60.11 61.78 1.03x
LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/158890045
Diffstat (limited to 'src/os/exec/exec.go')
0 files changed, 0 insertions, 0 deletions
