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:
Tim Brooks 2018-12-12 07:55:17 -07:00 committed by GitHub
parent e63d52af63
commit 3a56bb0924
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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