• Josh Bleecher Snyder's avatar
    cmd/compile: allow deduplication of long strings · a0232ea0
    Josh Bleecher Snyder authored
    String symbols' names used to appear in the final binary.
    Using a string's contents as it's symbol's name
    was a thus a bad idea if the string's name was long.
    Recent improvements by crawshaw have changed that.
    
    Instead of placing long strings behind opaque names
    in local packages, place them in the global string
    package and make them content-addressable.
    Symbol names still occur in the object files,
    so use a hash to avoid needless length there.
    
    Reduces the size of cmd/go by 30k.
    
    Change-Id: Ifdbbaf47bf44352418c90ddd903d5106e48db4f1
    Reviewed-on: https://go-review.googlesource.com/20524
    Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarDavid Crawshaw <crawshaw@golang.org>
    a0232ea0
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
trace Loading commit data...
vet Loading commit data...
yacc Loading commit data...