Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ public ReadableByteChannel readDecompressed(ReadableByteChannel channel) throws

@Override
public WritableByteChannel writeCompressed(WritableByteChannel channel) throws IOException {
return Channels.newChannel(new GZIPOutputStream(Channels.newOutputStream(channel), true));
// Increase the default deflate output stream buffer size from 512 to 4096 for performance.
return Channels.newChannel(
new GZIPOutputStream(Channels.newOutputStream(channel), 4096, true));
}
},

Expand Down
Loading