MrQuansy opened a new pull request, #12050: URL: https://github.com/apache/iotdb/pull/12050
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. <img width="820" alt="image" src="https://github.com/apache/iotdb/assets/50790061/47e32c3c-454e-4c1e-af74-06724be1069f"> We use benchmark to evaluate this optimization (Insert Tablet with text value type): * Before <img width="1242" alt="image" src="https://github.com/apache/iotdb/assets/50790061/04eac1f2-e0f7-4a6e-9303-009dd336d178"> * After <img width="1216" alt="image" src="https://github.com/apache/iotdb/assets/50790061/0f20346b-896f-4a65-a7ae-091041c2f238"> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@iotdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org