mirror of
https://github.com/golang/go
synced 2024-11-17 23:44:48 -07:00
61f0409c31
The Grow method is like the proposed slices.Grow function in that it ensures that the slice has enough capacity to append n elements without allocating. The implementation of Grow is a thin wrapper over runtime.growslice. This also changes Append and AppendSlice to use growslice under the hood. Fixes #48000 Change-Id: I992a58584a2ff1448c1c2bc0877fe76073609111 Reviewed-on: https://go-review.googlesource.com/c/go/+/389635 Run-TryBot: Joseph Tsai <joetsai@digital-static.net> Reviewed-by: Keith Randall <khr@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> |
||
---|---|---|
.. | ||
41773.txt | ||
42537.txt | ||
43620.txt | ||
45038.txt | ||
45899.txt | ||
46731.txt | ||
46746.txt | ||
47209.txt | ||
48000.txt | ||
50429.txt | ||
50770.txt | ||
51246.txt | ||
51430.txt | ||
51668.txt | ||
51896.txt | ||
52221.txt | ||
52376.txt | ||
52746.txt | ||
53002.txt | ||
53021.txt | ||
53200.txt | ||
53202.txt | ||
53280.txt | ||
53346.txt | ||
53356.txt | ||
53435.txt | ||
53482.txt | ||
54222.txt | ||
54251.txt | ||
54345.txt |