mirror of https://github.com/apache/lucene.git
Use growNoCopy for SortingStoredFieldsConsumer#NO_COMPRESSION (#12733)
This commit is contained in:
parent
382aa549a7
commit
1448015641
|
@ -61,7 +61,7 @@ final class SortingStoredFieldsConsumer extends StoredFieldsConsumer {
|
||||||
public void decompress(
|
public void decompress(
|
||||||
DataInput in, int originalLength, int offset, int length, BytesRef bytes)
|
DataInput in, int originalLength, int offset, int length, BytesRef bytes)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
bytes.bytes = ArrayUtil.grow(bytes.bytes, length);
|
bytes.bytes = ArrayUtil.growNoCopy(bytes.bytes, length);
|
||||||
in.skipBytes(offset);
|
in.skipBytes(offset);
|
||||||
in.readBytes(bytes.bytes, 0, length);
|
in.readBytes(bytes.bytes, 0, length);
|
||||||
bytes.offset = 0;
|
bytes.offset = 0;
|
||||||
|
|
Loading…
Reference in New Issue