• Josh Bleecher Snyder's avatar
    cmd/compile: don't generate algs for map buckets · a6abc1cd
    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[T]S and also map[[8]T]S. In that case,
    the runtime needs algs for [8]T, but this could
    mark the sole [8]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 5k off cmd/go and 22k off golang.org/x/tools/cmd/godoc,
    approx 0.04% and 0.12% respectively.
    
    For #6853 and #9930
    
    Change-Id: I30a15ec72ecb62e2aa053260a7f0f75015fc0ade
    Reviewed-on: https://go-review.googlesource.com/19769Reviewed-by: 's avatarDavid Crawshaw <crawshaw@golang.org>
    Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    a6abc1cd
Name
Last commit
Last update
..
amd64 Loading commit data...
arm Loading commit data...
arm64 Loading commit data...
big Loading commit data...
gc Loading commit data...
mips64 Loading commit data...
ppc64 Loading commit data...
s390x Loading commit data...
ssa Loading commit data...
x86 Loading commit data...