On Wed Feb 12 14:06:37 2025 +0000, Yuxuan Shui wrote:
No necessarily - the parser can accumulate multiple buffers and only split at the boundaries it finds suitable.
Which it would also do with this arbitrary split. If this works then parsers don't accumulate more than necessary, which is likely frame or sub-frame granularity.
Using the parser standalone for splitting is also going to help zero copy: we can only write to the client buffers one frame at a time. Pushing data that decodes to more than one frame will require these frames to be decoded into unix-side buffers and copies to be done later to the client buffers.