]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.14: mention new, more efficient, timers
authorIan Lance Taylor <iant@golang.org>
Tue, 19 Nov 2019 15:42:09 +0000 (07:42 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 19 Nov 2019 18:43:52 +0000 (18:43 +0000)
Change-Id: I71fc3016106db733b888f3daccc00b493abe39b2
Reviewed-on: https://go-review.googlesource.com/c/go/+/207840
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
doc/go1.14.html

index ed4e3e2ef95cbd923fc079f119867c86feddea4e..fd2525149f49173990fe18119e477b2950d1bfac 100644 (file)
@@ -171,6 +171,16 @@ TODO
 TODO
 </p>
 
+<p><!-- CL 171844 and many others -->
+  Internal timers, used by
+  <a href="/pkg/time/#After"><code>time.After</code></a>,
+  <a href="/pkg/time/#Tick"><code>time.Tick</code></a>,
+  <a href="/pkg/net/#Conn"><code>net.Conn.SetDeadline</code></a>,
+  and friends, are more efficient, with less lock contention and fewer
+  context switches.
+  This is a performance improvement that should not cause any user
+  visible changes.
+</p>
 
 <h2 id="library">Core library</h2>