]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/ld: cache file name construction in linkgetline
authorRuss Cox <rsc@golang.org>
Wed, 4 Mar 2015 03:29:03 +0000 (22:29 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 5 Mar 2015 02:02:39 +0000 (02:02 +0000)
commit43941d85cf35fae53005bb51d545614651b3d8c2
tree86e8aca7cae9aee60f8c3860e998f43e5988f35b
parent5a16d6fc34c89a46b04545f21bee3e93f3146902
cmd/internal/ld: cache file name construction in linkgetline

This avoids repeated allocation and map lookups
when constructing the pcln tables.

For 6g compiling cmd/internal/gc/*.go this saves about 8% wall time.

Change-Id: I6a1a80e278ae2c2a44bd1537015ea7b4e7a4d6ca
Reviewed-on: https://go-review.googlesource.com/6793
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/internal/obj/link.go
src/cmd/internal/obj/obj.go