]> Cypherpunks repositories - gostls13.git/commit
cmd/link: run generator functions along with symbol writing
authorCherry Zhang <cherryyz@google.com>
Sat, 17 Oct 2020 18:00:35 +0000 (14:00 -0400)
committerCherry Zhang <cherryyz@google.com>
Mon, 19 Oct 2020 18:31:53 +0000 (18:31 +0000)
commit06839e3c9a014da580c2cdcd11263e2b08991b74
treed705aaece1cd0c2b3fae5452c4f2ee80aa12c4a7
parent2ff9e01d72f718ef61c635a25db6d2084aef95eb
cmd/link: run generator functions along with symbol writing

Like we do for applying relocations, for generator symbols, run
the generator function along with symbol writing. This will
probably have better locality and parallelism.

Linking cmd/compile,

Asmb          29.9ms ± 5%    19.1ms ±12%  -36.18%  (p=0.000 n=10+9)
TotalTime      351ms ± 3%     339ms ± 2%   -3.51%  (p=0.000 n=11+10)

Change-Id: I9cda6718bf70b3bcf1b7a501a845d6136234d2ee
Reviewed-on: https://go-review.googlesource.com/c/go/+/263640
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/main.go