mirror of
https://github.com/golang/go.git
synced 2025-05-25 17:31:22 +00:00
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 <khr@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
This commit is contained in:
parent
668041ef66
commit
d23c80b8e4
@ -76,7 +76,8 @@ Do not send CLs removing the interior tags from such phrases.
|
|||||||
The compiler now uses
|
The compiler now uses
|
||||||
a <a href="https://en.wikipedia.org/wiki/Branch_table">jump
|
a <a href="https://en.wikipedia.org/wiki/Branch_table">jump
|
||||||
table</a> to implement large integer and string switch statements.
|
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)
|
(<code>GOARCH=amd64</code> and <code>GOARCH=arm64</code> only)
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user