iotdb
iotdb copied to clipboard
Thrift zero-copy optimization for TElasticFramedTransport
Previously, these methods of TElasticFramedTransport are not override implemented. TBinaryProtocol will allocate new byte array and copy from frame buffer. After this pr, TBinaryProtocol can wrap the byte buffer with the reference of frame buffer segment, which eliminates the cost of memory allocation and memory copying.
We use benchmark to evaluate this optimization (Insert Tablet with text value type):
- Before
- After
@OneSizeFitsQuorum PTAL