Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Resolved
-
1.0.2, 2.0.0
Description
Reusing buffer to read request.It's not necessary to every request free buffer.The idea of optimization is to reduce the times that allocate ByteBuffer.
Modification
1. saslReadAndProcess ,processOneRpc, processUnwrappedData, processConnectionHeader accept a ByteBuffer instead of byte[].They can move ByteBuffer.position correctly when we have read the data.
2. processUnwrappedData no longer use any extra memory.
3. Maintaining a buffer pool in each Connection.
Attachments
Attachments
Issue Links
- relates to
-
HBASE-15788 Use Offheap ByteBuffers from BufferPool to read RPC requests.
- Closed