• David Crawshaw's avatar
    cmd/link: when pruning methods also prune funcType · d06b0db5
    David Crawshaw authored
    Remove method type information for pruned methods from any program
    that does not reflect on methods. This can be a significant saving:
    
    	addr2line: -310KB (8.8%)
    
    A future update might want to consider a more aggressive variant of
    this: setting the Type and Func fields of reflect.Method to nil for
    unexported methods. That would shrink cmd/go by 2% and jujud by 2.6%
    but could be considered an API change. So this CL sticks to the
    uncontroversial change.
    
    For #6853.
    
    Change-Id: I5d186d9f822dc118ee89dc572c4912a3b3c72577
    Reviewed-on: https://go-review.googlesource.com/20701
    Run-TryBot: David Crawshaw <crawshaw@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    d06b0db5
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...