1
0
mirror of https://github.com/golang/go synced 2024-11-08 06:26:19 -07:00
go/src/cmd
isharipo 8bb391312c cmd/link/internal/ld: don't call fieldtrack if it's not enabled
If go toolchain is not built with GOEXPERIMENT=fieldtrack,
skip fieldtrack pass in the linker as it does full symtab traversal.

For linking "hello world" example from net/http:

	name      old time/op  new time/op  delta
	Linker-4   530ms ± 2%   525ms ± 2%  -1.03%  (p=0.028 n=17+19)

Fixes #20318
Updates #14624

Change-Id: I99336513db77d13f95f47d27339d76f01c42a5da
Reviewed-on: https://go-review.googlesource.com/113635
Run-TryBot: Iskander Sharipov <iskander.sharipov@intel.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-05-17 17:12:27 +00:00
..
addr2line
api
asm cmd/internal/obj/x86: fix VPERMQ and VPERMPD ytab 2018-05-17 16:20:25 +00:00
buildid
cgo cmd/cgo: visit cgo type inside ellipsis node 2018-05-01 00:44:48 +00:00
compile cmd/compile: improve error message emitted by debug info generation 2018-05-15 17:48:30 +00:00
cover
dist cmd/dist: add support for disabling test -short mode 2018-05-16 19:49:01 +00:00
doc cmd/doc: skip directories like other go tools 2018-05-01 05:02:43 +00:00
fix
go testing: only compute b.N once when passed -count > 1 2018-05-14 17:07:43 +00:00
gofmt
internal cmd/internal/obj/x86: fix VPERMQ and VPERMPD ytab 2018-05-17 16:20:25 +00:00
link cmd/link/internal/ld: don't call fieldtrack if it's not enabled 2018-05-17 17:12:27 +00:00
nm
objdump
pack cmd: remove some unused parameters 2018-04-02 15:51:31 +00:00
pprof go/printer, gofmt: tuned table alignment for better results 2018-04-04 13:39:34 -07:00
test2json
trace cmd/trace: handle invalid goid para in /trace 2018-05-08 19:25:01 +00:00
vendor cmd/vendor/.../pprof: delete pprof.go file 2018-05-17 10:11:31 +00:00
vet cmd/vet: assume that no builtin funcs are pure 2018-05-09 05:13:03 +00:00