Do not zero out pages for bytes output stream
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.
@@ -58,7 +58,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
