Skip to content

Commit fcdfc69

Browse files
committed
_content/doc/go1.24: clarify sync.Map improvements
The improvements are primarily about contention under certain circumstances. Modifications to the map improved the most. Change-Id: I9e43dab9bb3645ee237bbd263a68a2c1aa0950a7 Reviewed-on: https://go-review.googlesource.com/c/website/+/635858 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Pratt <[email protected]>
1 parent 37c8115 commit fcdfc69

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

_content/doc/go1.24.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,8 +721,12 @@ The [`strings`](/pkg/strings) package adds several functions that work with iter
721721

722722
#### [`sync`](/pkg/sync/)
723723

724-
The implementation of [`sync.Map`](/pkg/sync#Map) has been changed, improving overall performance
725-
and resolving some long-standing issues.
724+
The implementation of [`sync.Map`](/pkg/sync#Map) has been changed, improving performance,
725+
particularly for map modifications.
726+
For instance, modifications of disjoint sets of keys are much less likely to contend on
727+
larger maps, and there is no longer any ramp-up time required to achieve low-contention
728+
loads from the map.
729+
726730
If you encounter any problems, set `GOEXPERIMENT=nosynchashtriemap` at build
727731
time to switch back to the old implementation and please [file an
728732
issue](/issue/new).

0 commit comments

Comments
 (0)