• Todd Neal's avatar
    http2/hpack: remove pair function and initialize directly · 0d772244
    Todd Neal authored
    Inlining isn't performed on generated init functions.  Removing the pair
    function and initializing the structs directly saves another 16k on a
    simple http.ListenAndServe() binary.
    
    delta   name                                      old      new
    -58     runtime.findfunctab                       10471    10413         -0.55%
    -41     runtime.gcbss                             910      869           -4.51%
    41      runtime.gcdata                            612      653            6.70%
    -408    runtime.pclntab                           1036311  1035903       -0.04%
    -11711  vendor/golang_org/x/net/http2/hpack.init  12283    572          -95.34%
    
    Updates golang/go#6853
    
    Change-Id: Ibccc796fe7403674cf4b4561acf9551d76ff11e8
    Reviewed-on: https://go-review.googlesource.com/43190
    Run-TryBot: Todd Neal <todd@tneal.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    0d772244
Name
Last commit
Last update
bpf Loading commit data...
context Loading commit data...
dict Loading commit data...
dns/dnsmessage Loading commit data...
html Loading commit data...
http2 Loading commit data...
icmp Loading commit data...
idna Loading commit data...
internal Loading commit data...
ipv4 Loading commit data...
ipv6 Loading commit data...
lex/httplex Loading commit data...
lif Loading commit data...
nettest Loading commit data...
netutil Loading commit data...
proxy Loading commit data...
publicsuffix Loading commit data...
route Loading commit data...
trace Loading commit data...
webdav Loading commit data...
websocket Loading commit data...
xsrftoken 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 Loading commit data...
codereview.cfg Loading commit data...