aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2015-03-16 16:46:25 -0400
committerRuss Cox <rsc@golang.org>2015-03-20 04:48:35 +0000
commitfd38dbc8a1d8e9ccfbea66ce35e7eb16a0cf826a (patch)
tree39d652610dd96a395cd05ab4562a4662e20f357d /src/os/exec
parent532ccae1547580e572cf5cd0f687f4508ceeddb9 (diff)
downloadgo-fd38dbc8a1d8e9ccfbea66ce35e7eb16a0cf826a.tar.xz
cmd/internal/gc: cache ProgInfo in Prog
The ProgInfo is loaded many times during each analysis pass. Load it once at the beginning (in Flowstart if using that, or explicitly, as in plive.go) and then refer to the cached copy. Removes many calls to proginfo. Makes Prog a little bigger, but the previous CL more than compensates. Change-Id: If90a12fc6729878fdae10444f9c3bedc8d85026e Reviewed-on: https://go-review.googlesource.com/7745 Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Diffstat (limited to 'src/os/exec')
0 files changed, 0 insertions, 0 deletions