]> Cypherpunks repositories - gostls13.git/commit
all: change from sort functions to slices functions where feasible
authorIan Lance Taylor <iant@golang.org>
Wed, 22 May 2024 20:38:40 +0000 (13:38 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 23 May 2024 01:00:11 +0000 (01:00 +0000)
commitb0b1d42db32a992150dd26681d3bda222e108303
treef520827bed796e2b0edc4cd91b2ac6dce89c718b
parent1849ce6a45640ec4a6e63138211eac4276473437
all: change from sort functions to slices functions where feasible

Doing this because the slices functions are slightly faster and
slightly easier to use. It also removes one dependency layer.

This CL does not change packages that are used during bootstrap,
as the bootstrap compiler does not have the required slices functions.
It does not change the go/scanner package because the ErrorList
Len, Swap, and Less methods are part of the Go 1 API.

Change-Id: If52899be791c829198e11d2408727720b91ebe8a
Reviewed-on: https://go-review.googlesource.com/c/go/+/587655
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Commit-Queue: Ian Lance Taylor <iant@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
89 files changed:
src/archive/tar/writer.go
src/archive/tar/writer_test.go
src/archive/zip/reader.go
src/archive/zip/zip_test.go
src/bytes/example_test.go
src/cmd/go/go_test.go
src/crypto/tls/tls_test.go
src/crypto/x509/verify_test.go
src/encoding/asn1/marshal.go
src/encoding/gob/encoder_test.go
src/encoding/pem/pem.go
src/fmt/errors.go
src/go/ast/commentmap.go
src/go/ast/filter.go
src/go/ast/import.go
src/go/build/build.go
src/go/build/deps_test.go
src/go/constant/example_test.go
src/go/doc/comment/std_test.go
src/go/doc/example.go
src/go/doc/reader.go
src/go/internal/gcimporter/gcimporter.go
src/go/internal/gcimporter/iimport.go
src/go/internal/gcimporter/ureader.go
src/go/printer/gobuild.go
src/go/token/position.go
src/go/types/api_test.go
src/go/types/example_test.go
src/go/types/issues_test.go
src/go/types/resolver_test.go
src/index/suffixarray/suffixarray.go
src/index/suffixarray/suffixarray_test.go
src/internal/coverage/cformat/format.go
src/internal/coverage/encodecounter/encode.go
src/internal/coverage/pods/pods.go
src/internal/dag/parse.go
src/internal/fmtsort/sort_test.go
src/internal/godebug/godebug_test.go
src/internal/trace/internal/oldtrace/order.go
src/internal/trace/internal/oldtrace/parser.go
src/internal/trace/mud.go
src/internal/trace/summary.go
src/io/fs/readdir.go
src/io/ioutil/ioutil.go
src/io/pipe_test.go
src/math/big/bits_test.go
src/mime/mediatype.go
src/mime/multipart/writer.go
src/mime/quotedprintable/reader_test.go
src/mime/type.go
src/net/dnsclient.go
src/net/http/cgi/cgi_main.go
src/net/http/clientserver_test.go
src/net/http/cookiejar/jar.go
src/net/http/cookiejar/jar_test.go
src/net/http/httputil/reverseproxy_test.go
src/net/lookup_test.go
src/net/lookup_windows_test.go
src/net/main_test.go
src/net/net_windows_test.go
src/net/netip/netip_test.go
src/net/resolverdialfunc_test.go
src/net/rpc/debug.go
src/net/url/url.go
src/os/dir.go
src/os/os_test.go
src/os/os_windows_test.go
src/os/user/listgroups_unix_test.go
src/path/filepath/match.go
src/path/filepath/path.go
src/reflect/all_test.go
src/runtime/debug/garbage.go
src/runtime/gc_test.go
src/runtime/map_test.go
src/runtime/pprof/label.go
src/runtime/pprof/pprof.go
src/runtime/runtime_test.go
src/sync/pool_test.go
src/syscall/dirent_test.go
src/syscall/getdirentries_test.go
src/syscall/syscall_linux_test.go
src/testing/benchmark.go
src/testing/benchmark_test.go
src/testing/example.go
src/testing/fstest/mapfs.go
src/testing/fstest/testfs.go
src/testing/fstest/testfs_test.go
src/testing/testing.go
src/time/genzabbrs.go