We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 914c16e commit b843f4aCopy full SHA for b843f4a
sdks/java/core/src/main/java/org/apache/beam/sdk/io/Compression.java
@@ -99,7 +99,9 @@ public ReadableByteChannel readDecompressed(ReadableByteChannel channel) throws
99
100
@Override
101
public WritableByteChannel writeCompressed(WritableByteChannel channel) throws IOException {
102
- return Channels.newChannel(new GZIPOutputStream(Channels.newOutputStream(channel), true));
+ // Increase the default deflate output stream buffer size from 512 to 4096 for performance.
103
+ return Channels.newChannel(
104
+ new GZIPOutputStream(Channels.newOutputStream(channel), 4096, true));
105
}
106
},
107
0 commit comments