diff options
author | Carlo Alberto Ferraris <cafxx@strayorange.com> | 2019-08-10 13:11:26 +0000 |
---|---|---|
committer | Emmanuel Odeke <emm.odeke@gmail.com> | 2019-08-10 20:06:28 +0000 |
commit | 3928915ec74029269f8dacb46c627cbdbd295c2b (patch) | |
tree | f8a84d1e7e485669181bcd81ca2d5bf517583601 | |
parent | 9c1f14f3763dbbc0d8105fa88c0b7bdad5674ee7 (diff) | |
download | go-3928915ec74029269f8dacb46c627cbdbd295c2b.tar.gz go-3928915ec74029269f8dacb46c627cbdbd295c2b.zip |
doc/go1.13: mention faster sync.Mutex/RWMutex/Once
Mention faster sync.Mutex/RWMutex/Once in the 1.13 release notes.
Change-Id: I29d8a5004a0af42542e8db82a8c9e2e06a15dbb0
GitHub-Last-Rev: 2995401dab563ea5af98c0f5351f51a6116f105e
GitHub-Pull-Request: golang/go#33404
Reviewed-on: https://go-review.googlesource.com/c/go/+/188479
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
-rw-r--r-- | doc/go1.13.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/go1.13.html b/doc/go1.13.html index 3b9da340aa..554557cd7f 100644 --- a/doc/go1.13.html +++ b/doc/go1.13.html @@ -892,6 +892,14 @@ godoc <dl id="sync"><dt><a href="/pkg/sync/">sync</a></dt> <dd> + <p><!-- CL 148958, CL 148959, CL 152697, CL 152698 --> + The fast paths of <a href="/pkg/sync/#Mutex.Lock"><code>Mutex.Lock</code></a>, <a href="/pkg/sync/#Mutex.Unlock"><code>Mutex.Unlock</code></a>, + <a href="/pkg/sync/#RWMutex.Lock"><code>RWMutex.Lock</code></a>, <a href="/pkg/sync/#Mutex.RUnlock"><code>RWMutex.RUnlock</code></a>, and + <a href="/pkg/sync/#Once.Do"><code>Once.Do</code></a> are now inlined in their callers. + For the uncontended cases on amd64, these changes make <a href="/pkg/sync/#Once.Do"><code>Once.Do</code></a> twice as fast, and the + <a href="/pkg/sync/#Mutex"><code>Mutex</code></a>/<a href="/pkg/sync/#RWMutex"><code>RWMutex</code></a> methods up to 10% faster. + </p> + <p><!-- CL 166960 --> Large <a href="/pkg/sync/#Pool"><code>Pool</code></a> no longer increase stop-the-world pause times. </p> |