]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.16: add crypto/x509 memory optimization
authorBrad Fitzpatrick <bradfitz@golang.org>
Sat, 23 Jan 2021 04:38:29 +0000 (20:38 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 23 Jan 2021 19:46:15 +0000 (19:46 +0000)
Change-Id: I0c61b0e0d1430f66e3f7dbf07817264258a1c15a
Reviewed-on: https://go-review.googlesource.com/c/go/+/285682
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Brad Fitzpatrick <bradfitz@golang.org>

doc/go1.16.html

index 9c8919e5c236332831a0a325f78f75699b3c4254..78f69f6c7d63996a34ca7d50ff1dc56a7e2677f1 100644 (file)
@@ -623,6 +623,14 @@ func TestFoo(t *testing.T) {
       method allows accessing the <a href="/pkg/crypto/x509/#SystemRootsError.Err"><code>Err</code></a>
       field through the <a href="/pkg/errors"><code>errors</code></a> package functions.
     </p>
+
+    <p><!-- CL 230025 -->
+      On Unix systems, the <code>crypto/x509</code> package is now more
+      efficient in how it stores its copy of the system cert pool.
+      Programs that use only a small number of roots will use around a
+      half megabyte less memory.
+    </p>
+
   </dd>
 </dl><!-- crypto/x509 -->