]> Cypherpunks.ru repositories - gostls13.git/commit
slices: amortize allocations in Insert
authorIan Lance Taylor <iant@golang.org>
Wed, 12 Apr 2023 20:57:21 +0000 (13:57 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 13 Apr 2023 17:55:12 +0000 (17:55 +0000)
commit3de5b4da26b0062c9fd1b84849a0d4b7e78aaf5a
tree2f7bdd373b436e1b1c72d3cb881c6fba15f47ad7
parent74c296b69ffe07322b4bb42d7d2afe5f76ccf6ad
slices: amortize allocations in Insert

Fixes #54948

Change-Id: I467afb940b539b100dcce687b05914a9da7b9ed2
Reviewed-on: https://go-review.googlesource.com/c/go/+/484159
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Valentin Deleplace <deleplace@google.com>
src/slices/slices.go
src/slices/slices_test.go