1
0
mirror of https://github.com/golang/go synced 2024-11-26 08:58:09 -07:00

doc/go1.16: add crypto/x509 memory optimization

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>
This commit is contained in:
Brad Fitzpatrick 2021-01-22 20:38:29 -08:00
parent 9897655c61
commit b634f5d97a

View 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 -->