• 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
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...