• Josh Bleecher Snyder's avatar
    cmd/compile: don't generate algs for ... args · b6b144bf
    Josh Bleecher Snyder authored
    Note that this is only safe because
    the compiler generates multiple distinct
    gc.Types. If we switch to having canonical
    gc.Types, then this will need to be updated
    to handle the case in which the user uses both
    map[[n]T]S and also calls a function f(...T) with n arguments.
    In that case, the runtime needs algs for [n]T, but this could
    mark the sole [n]T type as Noalg. This is a general
    problem with having a single bool to represent
    whether alg generation is needed for a type.
    
    Cuts 17k off cmd/go and 13k off golang.org/x/tools/cmd/godoc,
    approx 0.14% and 0.07% respectively.
    
    For #6853 and #9930
    
    Change-Id: Iccb6b9fd88ade5497d7090528a903816d340bf0a
    Reviewed-on: https://go-review.googlesource.com/19770Reviewed-by: 's avatarDavid Crawshaw <crawshaw@golang.org>
    Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    b6b144bf
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...