cmd/go: look for tool build ID before hashing entire file
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 10 Sep 2019 02:48:24 +0000 (02:48 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 10 Sep 2019 02:48:24 +0000 (02:48 +0000)
commitc96fc0812393c3e2744232c1f6e248776628397f
tree50a15ac8527d9faca731fd6589e21f35c950b300
parent5447e8e2e249a12b0f22ccfb171ccc8fff9fcadc
cmd/go: look for tool build ID before hashing entire file

    Also fix the key used to store the ID.

    This is a significant speedup in cmd/go run time.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/194257

From-SVN: r275559
gcc/go/gofrontend/MERGE
libgo/go/cmd/go/internal/work/buildid.go