]> Cypherpunks repositories - gostls13.git/commitdiff
doc: mention jump tables and tsan upgrades in 1.19 release notes
authorKeith Randall <khr@golang.org>
Tue, 10 May 2022 23:15:35 +0000 (16:15 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 11 May 2022 05:57:07 +0000 (05:57 +0000)
Change-Id: I0ab34f2f931e0e712218e4eb086f4535cc17775c
Reviewed-on: https://go-review.googlesource.com/c/go/+/405614
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>

doc/go1.19.html

index 51b5a54e167a66b10b1e5ffea9337e14490fdfd6..dbcee75ce6c537d11fb5176efb055825d0453295 100644 (file)
@@ -71,6 +71,14 @@ Do not send CLs removing the interior tags from such phrases.
   TODO: complete this section, or delete if not needed
 </p>
 <h2 id="compiler">Compiler</h2>
+
+<p><!-- https://golang.org/issue/5496 CL 357330, 395714, 403979 -->
+  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.
+  (<code>GOARCH=amd64</code> and <code>GOARCH=arm64</code> only)
+
 <p>
   TODO: complete this section, or delete if not needed
 </p>
@@ -168,6 +176,26 @@ Do not send CLs removing the interior tags from such phrases.
   </dd>
 </dl><!-- runtime -->
 
+<dl id="runtime/race"><dt><a href="/pkg/runtime/race">runtime/race</a></dt>
+  <dd>
+    <p><!-- https://go.dev/issue/49761 -->
+      The race detector has been updgraded to use thread sanitizer
+      version v3.
+      <ul>
+        <li>
+          Faster (typically 1.5 to 2 times faster)
+        </li>
+        <li>
+          Uses less memory (typically 1/2 as much)
+        </li>
+        <li>
+          Supports unlimited numbers of goroutines
+        </li>
+      </ul>
+    </p>
+  </dd>
+</dl><!-- runtime/race -->
+
 <dl id="strconv"><dt><a href="/pkg/strconv/">strconv</a></dt>
   <dd>
     <p><!-- CL 397255 -->