Keep observer composition storage proportional to selected callbacks
This commit is contained in:
@@ -140,7 +140,13 @@ statically. Do not add public allocation guarantees or exact-allocation tests.
|
||||
|
||||
## 3. Size Observer Storage For Selected Callbacks
|
||||
|
||||
**Priority:** P3. **Status:** For consideration. **Plan stage:** 9.
|
||||
**Priority:** P3. **Status:** Complete. **Plan stage:** 9.
|
||||
|
||||
**Completion:** Observer composition counts selected callbacks before allocating,
|
||||
sizes retained storage to that count, and handles zero/single selections without
|
||||
a fan-out closure. Sparse-selection ownership and duplicate-delivery tests pass.
|
||||
The complete offline race suite, maintained examples, vet, and diff checks passed
|
||||
with Go 1.27.3 after all remediations.
|
||||
|
||||
**Location:** [`Compose`](../../internal/observation/compose.go).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user