1523a97708
Release, 10k cohort, 5 runs each: 2.21-2.31 KB -> 1.68-1.72 KB per delivered value, process-wide. - A live value takes over its hub read's sample lease and charge (CachedSourceRead.TryTransferSample: same amount, same budget; the read keeps its source guard until disposed) instead of retaining a second copy and reserving a second charge. Re-stamped with the item's serving only when it differs. - ValueLease holds a reference on the item's SharedSessionLease directly (no Hold per value); the release order (charge, item, snapshot) and once-only guard are unchanged. - The latest-sample cache keeps the published update itself for a scalar payload (arrays still copied). - The cohort's frame window is a FrameSlotWindow (SemaphoreSlim semantics: over-release throws, a cancelled wait takes no slot) on one reused SlotWaiter and one registration per attempt; the pump waited for nearly every frame, each wait allocating a task, state machine and registration. - SlotWaiter (moved out of the session) now makes a re-arm wait out a signaller still inside SetResult, so the old signal cannot complete the next wait; it is hot now (one wait per frame under load). - Indexed loops for the pump's frame sizing and DataSubscriptionValues.Dispose (no boxed enumerators). - ClientFilterState keeps its baseline's compared fields and value lease, not a re-wrapped sample. Pooling ValueLease/ValueDelivery (~150 B) is declined: the lease escapes as the public DataSubscriptionValues.ResourceLease and a delivery's Gate is handed to the gRPC sink as a publication guard, so a recycled object could release or authorize for another value. Tests (GrpcData1098OwnershipTests) fail on a read releasing a transferred sample, a lease not holding its item, a frame-window double release / lost wakeup, and a re-arm racing a completing signal.