Skip to content

Commit 795d95d

Browse files
mknyszekgopherbot
authored andcommitted
doc/next: add release notes for runtime and sync
Also, move the weak package heading to the end; it currently overlaps with 1-osroot.md in the sort order. For #68545. Change-Id: Ia26ae511eaab7c8762e42d1593ac2197d25bbadb Reviewed-on: https://go-review.googlesource.com/c/go/+/633599 Reviewed-by: David Chase <drchase@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Michael Knyszek <mknyszek@google.com>
1 parent 32ff485 commit 795d95d

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

doc/next/4-runtime.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
11
## Runtime {#runtime}
2+
3+
<!-- go.dev/issue/54766 -->
4+
<!-- go.dev/cl/614795 -->
5+
<!-- go.dev/issue/68578 -->
6+
7+
Several performance improvements to the runtime have decreased CPU overheads by
8+
2—3% on average across a suite of representative benchmarks.
9+
Results may vary by application.
10+
These improvements include a new builtin `map` implementation based on
11+
[Swiss Tables](https://abseil.io/about/design/swisstables), more efficient
12+
memory allocation of small objects, and a new runtime-internal mutex
13+
implementation.
14+
15+
The new builtin `map` implementation and new runtime-internal mutex may be
16+
disabled by setting `GOEXPERIMENT=noswissmap` and `GOEXPERIMENT=nospinbitmutex`
17+
at build time respectively.
File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
The implementation of [sync.Map] has been changed, improving overall performance
2+
and resolving some long-standing issues.
3+
If you encounter any problems, set `GOEXPERIMENT=nosynchashtriemap` at build
4+
time to switch back to the old implementation and please [file an
5+
issue](/issue/new).

0 commit comments

Comments
 (0)