]> Cypherpunks repositories - gostls13.git/commitdiff
doc: update jump table performance release note
authorKeith Randall <khr@golang.org>
Tue, 17 May 2022 16:54:11 +0000 (09:54 -0700)
committerKeith Randall <khr@google.com>
Tue, 17 May 2022 19:40:11 +0000 (19:40 +0000)
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 <khr@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
doc/go1.19.html

index dbcee75ce6c537d11fb5176efb055825d0453295..0c55a7eac2e90231093401b2324312a43b87e5ca 100644 (file)
@@ -76,7 +76,8 @@ Do not send CLs removing the interior tags from such phrases.
   The compiler now uses
   a <a href="https://en.wikipedia.org/wiki/Branch_table">jump
   table</a> 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.
   (<code>GOARCH=amd64</code> and <code>GOARCH=arm64</code> only)
 
 <p>