]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: allow linker to drop string headers when not needed
authorRuss Cox <rsc@golang.org>
Mon, 29 Jun 2015 17:50:30 +0000 (13:50 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 30 Jun 2015 19:27:52 +0000 (19:27 +0000)
commite8f2eb43492df599efd65a2e01e9e8618fe46632
treed363ea8ae039db11a31a3d748b07244fc81f465d
parent3b6e86f48ab58799b4064f7e840ad71e242a73dc
cmd/compile: allow linker to drop string headers when not needed

Compiling a simple file containing a slice of 100,000 strings,
the size of the resulting binary dropped from 5,896,224 bytes
to 3,495,968 bytes, which is the expected 2,400,000 bytes,
give or take.

Fixes #7384.

Change-Id: I3e551b5a1395b523a41b33518d81a1bf28da0906
Reviewed-on: https://go-review.googlesource.com/11698
Reviewed-by: Austin Clements <austin@google.com>
src/cmd/compile/internal/gc/obj.go