Each BidirectionalStream.write() creates one data packet. If the write buffers are small, this can be inefficient in terms of packet overhead and number of packets that need to be transmitted.
Suggested approach: add a flush() method to BidirectionalStream, and coalesce buffers if the caller specifies to do so.
Additionally, we can combine the header frame with data frames so that a small header frame doesn't take up one packet.
Comment 1 by xunji...@chromium.org
, Apr 1 2016