]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/ld: remove pointless allocs
authorJosh Bleecher Snyder <josharian@gmail.com>
Sat, 25 Apr 2015 03:24:49 +0000 (20:24 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 27 Apr 2015 17:08:56 +0000 (17:08 +0000)
commit2692f48330da001903bc74210cec5ff27fe663c2
treef25a85db9f39f8b99c9ff1d4d85177251e01f5ad
parent4a3e000a48fdfe4cbcfe8970db9c1ebec9c4b89d
cmd/internal/ld: remove pointless allocs

Reduces allocs linking cmd/go and runtime.test
by ~13%. No functional changes.

The most easily addressed sources of allocations
after this are expandpkg, rdstring, and symbuf
string conversion.

These can be reduced by interning strings,
but that increases the overall memory footprint.

Change-Id: Ifedefc9f2a0403bcc75460d6b139e8408374e058
Reviewed-on: https://go-review.googlesource.com/9391
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/cmd/internal/ld/dwarf.go
src/cmd/internal/ld/go.go
src/cmd/internal/ld/objfile.go