Files
orca/src
NeilandOrca 83af12dc3e [P2] perf(relay): stop re-encoding frames to size PTY chunks (#11620)
* perf(relay): stop re-encoding frames to size PTY chunks

maxLegacyPtyDataChars now sizes the full candidate once (the common case)
and falls back to a binary search over an exact cheap byte formula instead
of fully encoding the frame at every probe. Publish paths thread their
already-computed frame estimate into enqueueFrame so each PTY publish
encodes the message once for admission instead of twice.

Co-authored-by: Orca <help@stably.ai>

* fix(relay): preserve dispatcher frame guards

---------

Co-authored-by: Orca <help@stably.ai>
2026-07-30 17:48:07 -07:00
..