Skip to content

Commit 469ac33

Browse files
committed
doc
1 parent 0f92c94 commit 469ac33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Goroutine-safe Copy-on-Write with `sync.Pool`. Wraps a `sync.Pool` with referenc
1313

1414
## Why?
1515

16-
Read-mostly shared resources that need periodic updates present a tradeoff:
16+
Read-mostly shared resources that need periodic updates present a "synchronization or allocation" tradeoff:
1717

1818
- **In-place update under lock (e.g. `sync.RWMutex`)**: Zero-alloc - but blocks all readers during updates
1919
- **Pointer swap + Copy-on-Write (e.g. `atomic.Pointer` or `sync.RWMutex`)**: Fast and non-blocking - but forces you to allocate a new object on each update, causing GC pressure

0 commit comments

Comments
 (0)