Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.6
-
None
Description
Code calls two writes to the underlying transport per flush: one for the frame size and one for the payload. The result is that folks use TBufferedTransport on top of TFramedTransport to avoid getting two ethernet frames for small packets. This means everything is double-buffered!
Based on THRIFT-1121 and THRIFT-959 this may have been an issue for a long time - the fix was easy however. We make room for the frame size before writing to the buffer, then we only have to pull out the buffer, drop the frame size into the 4 bytes that we pre-allocated, and then write to the underlying transport once.
Attachments
Issue Links
- is duplicated by
-
THRIFT-1423 Binary transport break up by overlapping of TFrame headers in scribe.AsyncClient
- Closed
- relates to
-
THRIFT-1121 Java server performance regression in 0.6
- Closed
-
THRIFT-959 TSocket seems to do its own buffering inefficiently
- Closed
- links to