]> Cypherpunks repositories - gostls13.git/commitdiff
sync: delete a sentence from the Map docs
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 21 Jul 2017 17:32:32 +0000 (17:32 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 21 Jul 2017 22:00:47 +0000 (22:00 +0000)
From Josh's comments on https://golang.org/cl/50310

Once I removed the "from the Go standard library" bit, the beginning
wasn't worth keeping. It also wasn't clear whether what it meant by
"cache contention". Processor caches, or user-level caches built with
sync.Map? It didn't seem worth clarifying and didn't convey any useful
information, so deleted.

Change-Id: Id1d76105a3081d0855f6a64540700932bb83d98e
Reviewed-on: https://go-review.googlesource.com/50632
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/sync/map.go

index c3c2d1cc8649d0aea08079d9d7910efd50ceac62..083f4a563f86b56caf24d6827315bed72ed5e13a 100644 (file)
@@ -12,10 +12,9 @@ import (
 // Map is a concurrent map with amortized-constant-time loads, stores, and deletes.
 // It is safe for multiple goroutines to call a Map's methods concurrently.
 //
-// Map is designed to reduce cache contention in the Go standard library.
-// It is optimized for use in concurrent loops with keys that are stable
-// over time, and either few steady-state stores, or stores localized to
-// one goroutine per key.
+// It is optimized for use in concurrent loops with keys that are
+// stable over time, and either few steady-state stores, or stores
+// localized to one goroutine per key.
 //
 // For use cases that do not share these attributes, it will likely have
 // comparable or worse performance and worse type safety than an ordinary