• Josh Bleecher Snyder's avatar
    cmd/internal/obj: add SortSlice · 826a09cd
    Josh Bleecher Snyder authored
    sort.Slice was added in Go 1.8.
    It's nice to use, and faster than sort.Sort,
    so it'd be nice to be able to use it in the toolchain.
    This CL adds obj.SortSlice, which is sort.Slice,
    but with a slower fallback version for bootstrapping.
    
    This CL also includes a single demo+test use.
    
    Change-Id: I2accc60b61f8e48c8ab4f1a63473e3b87af9b691
    Reviewed-on: https://go-review.googlesource.com/40114
    Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    826a09cd
Name
Last commit
Last update
..
amd64 Loading commit data...
arm Loading commit data...
arm64 Loading commit data...
gc Loading commit data...
mips Loading commit data...
mips64 Loading commit data...
ppc64 Loading commit data...
s390x Loading commit data...
ssa Loading commit data...
syntax Loading commit data...
test Loading commit data...
types Loading commit data...
x86 Loading commit data...