From: Keith Randall Date: Thu, 17 Feb 2022 17:37:07 +0000 (-0800) Subject: doc: mention change in append behavior X-Git-Tag: go1.19beta1~1190 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9eb14f1b0e748c74f6a7da4cd195db860928cfbc;p=gostls13.git doc: mention change in append behavior Introduced in CL 347917. Change-Id: I99b34341f787e779bd45b967110e70a035fa6558 Reviewed-on: https://go-review.googlesource.com/c/go/+/386217 Trust: Keith Randall Run-TryBot: Keith Randall TryBot-Result: Gopher Robot Reviewed-by: Martin Möhrmann Trust: Martin Möhrmann Run-TryBot: Martin Möhrmann --- diff --git a/doc/go1.18.html b/doc/go1.18.html index b320579c37..1ca0a5560d 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -512,6 +512,12 @@ For more information, see https:// after each value that may be inaccurate.

+

+ The built-in function append now uses a slightly different formula + when deciding how much to grow a slice when it must allocate a new underlying array. + The new formula is less prone to sudden transitions in allocation behavior. +

+

Compiler