• David Crawshaw's avatar
    cmd/link: shorter type symbol names · f81ae3b2
    David Crawshaw authored
    Use (part of) a SHA-1 checksum to replace type symbol names.
    
    In typical programs this has no effect because types are not included
    in the symbol table. But when dynamically linking, types are in the
    table to make sure there is only one *rtype per Go type.
    
    Eventually we may be able to get rid of all pointers to rtype values in
    the binary, but probably not by 1.7. And this has a nice effect on
    binary size today:
    
    libstd.so:
    	before 27.4MB
    	after  26.2MB
    
    For #6853.
    
    Change-Id: I603d7f3e5baad84f59f2fd37eeb1e4ae5acfe44a
    Reviewed-on: https://go-review.googlesource.com/21583Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    Run-TryBot: David Crawshaw <crawshaw@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    f81ae3b2
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...