perf(net): borrow inbound packet storage
Decode headers, optional fields, fragments, and single-fragment messages directly over pooled datagrams. Copy only fragment state that crosses a datagram lifetime, preserve synchronous dispatch and ACK ordering, and lock the path to the owned decoder with differential and zero-allocation tests.
This commit is contained in:
parent
7211bb1bf7
commit
e928c5dd02
18 changed files with 1329 additions and 66 deletions
|
|
@ -142,9 +142,10 @@ H-c is executed as three independently reversible units:
|
|||
datagrams, unchanged blocking handshake cadence, and direct span sends.
|
||||
Evidence:
|
||||
[`../research/2026-07-25-slice-h-c1-pooled-receive-owner.md`](../research/2026-07-25-slice-h-c1-pooled-receive-owner.md).
|
||||
2. **H-c2 — borrowed decode — ACTIVE.** Parse and verify headers, optional
|
||||
2. **H-c2 — borrowed decode — COMPLETE.** Parse and verify headers, optional
|
||||
fields, and fragments as borrowed views. Copy only multi-fragment state
|
||||
that must survive the current datagram.
|
||||
that must survive the current datagram. Evidence:
|
||||
[`../research/2026-07-25-slice-h-c2-borrowed-packet-decode.md`](../research/2026-07-25-slice-h-c2-borrowed-packet-decode.md).
|
||||
3. **H-c3 — direct outbound framing — PENDING.** Write packet and fragment
|
||||
framing into caller storage and remove intermediate payload arrays.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue