From d23c80b8e4cf1ff69176c78794a2cae10a1f5501 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Tue, 17 May 2022 09:54:11 -0700 Subject: [PATCH] doc: update jump table performance release note Just make it clearer that the performance gains are for the switch statement itself, not the whole program. Change-Id: I2d1bf2888f61112af3dc37113e740b00b092e2cc Reviewed-on: https://go-review.googlesource.com/c/go/+/406874 Reviewed-by: Keith Randall Reviewed-by: Cherry Mui --- doc/go1.19.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/go1.19.html b/doc/go1.19.html index dbcee75ce6..0c55a7eac2 100644 --- a/doc/go1.19.html +++ b/doc/go1.19.html @@ -76,7 +76,8 @@ Do not send CLs removing the interior tags from such phrases. The compiler now uses a jump table to implement large integer and string switch statements. - Performance improvements vary but can be on the order of 20% faster. + Performance improvements for the switch statement vary but can be + on the order of 20% faster. (GOARCH=amd64 and GOARCH=arm64 only)