Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
proton-j-0.26.0
-
None
Description
When writing a Transfer that has a larger payload than previously seen the FrameWriter may need to grow its internal buffer to accommodate that transfer. The current strategy is to double the capacity of the current buffer and copy the old bytes into the new buffer and then check again if there is room. Depending on the frame size setting and the size of the transfer this can result in a large amount of garbage being created and a number of unneeded copies of encoded performative data.