Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
-
Description
a temp ByteBuffer was allocated each time FileIOEngine#read was called
public Cacheable read(BucketEntry be) throws IOException { long offset = be.offset(); int length = be.getLength(); Preconditions.checkArgument(length >= 0, "Length of read can not be less than 0."); ByteBuffer dstBuffer = ByteBuffer.allocate(length); ... }
we can avoid this by use of ByteBuffAllocator#allocate(length) after HBASE-21879
Attachments
Attachments
Issue Links
- Blocked
-
HBASE-22996 refact MultiByteBuff, combine the buffsIterator and curItem & curItemIndex into one iterator
- Open
- links to