Joseph Doherty 0967fe0730 perf(sessions): bound a sparse array write by the worker command limit before expanding it (SES-008, #258)
IWorkerClient gains MaxCommandBytes (the negotiated frame maximum less the
sequence-stamp allowance, the bound its CommandTooLarge pre-check uses).
GatewaySession passes it as a byte budget into SparseArrayExpander, which
charges a lower bound of each expanded array's encoding (default-valued slots)
before allocating, so an oversized sparse write - or a bulk command whose
sparse values together overrun the frame - is rejected with InvalidArgument
without the million-slot allocation.
2026-12-03 13:08:29 -05:00
S
Description
No description provided
42 MiB
Languages
C# 52.7%
Java 35.4%
Python 3%
Rust 2.8%
Go 2.6%
Other 3.4%