Do not zero out pages for bytes output stream (#36523)
Currently, the `BytesStreamOutput` always zeros out the underlying byte pages when they are acquired. This should not be necessary as the stream overwrites the underlying bytes as serialization occurs.
This commit is contained in:
parent
e63d52af63
commit
3a56bb0924
|
@ -59,7 +59,7 @@ public class BytesStreamOutput extends BytesStream {
|
|||
|
||||
protected BytesStreamOutput(int expectedSize, BigArrays bigArrays) {
|
||||
this.bigArrays = bigArrays;
|
||||
this.bytes = bigArrays.newByteArray(expectedSize);
|
||||
this.bytes = bigArrays.newByteArray(expectedSize, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue