mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Add readLimitToCapacity(); to optimise this use case
This commit is contained in:
@@ -659,7 +659,7 @@ public abstract class SegmentStages implements SegmentLock, LocksInterface {
|
||||
|
||||
@Stage("Segment")
|
||||
public Bytes segmentBytesForRead() {
|
||||
segmentBytes.readLimit(segmentBytes.capacity());
|
||||
segmentBytes.readLimitToCapacity();
|
||||
return segmentBytes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user