From 7795673e0ceaaf8db28bd0e15b3258aff82ad3eb Mon Sep 17 00:00:00 2001 From: "Taro L. Saito" Date: Fri, 10 Jun 2011 10:18:57 +0900 Subject: [PATCH] Use 32kb block size according to suggestion by Alec Wysoker --- src/main/java/org/xerial/snappy/SnappyOutputStream.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/xerial/snappy/SnappyOutputStream.java b/src/main/java/org/xerial/snappy/SnappyOutputStream.java index c4faecd..bbe27a3 100755 --- a/src/main/java/org/xerial/snappy/SnappyOutputStream.java +++ b/src/main/java/org/xerial/snappy/SnappyOutputStream.java @@ -31,7 +31,7 @@ import java.io.OutputStream; * This class implements a stream filter for writing compressed data using * Snappy. * - * The input data is blocked into 8kb size (in default), and each block is + * The input data is blocked into 32kb size (in default), and each block is * compressed and then passed to the given {@link OutputStream}. * * The output data format is a sequence of (compressed chunk size, compressed @@ -42,7 +42,7 @@ import java.io.OutputStream; */ public class SnappyOutputStream extends OutputStream { - static final int DEFAULT_BLOCK_SIZE = 8 * 1024; // Use 8kb for the default block size + static final int DEFAULT_BLOCK_SIZE = 32 * 1024; // Use 32kb for the default block size protected final OutputStream out; private final int blockSize;