Use 4MB as the default block size

This commit is contained in:
Taro L. Saito 2011-04-01 17:28:41 +09:00
parent d184706dc1
commit 0644e3f657
1 changed files with 1 additions and 1 deletions
src/main/java/org/xerial/snappy

View File

@ -42,7 +42,7 @@ import java.io.OutputStream;
*/
public class SnappyOutputStream extends OutputStream
{
static final int DEFAULT_BLOCK_SIZE = 1 << 15; // use 2^15 = 32KB as block size
static final int DEFAULT_BLOCK_SIZE = 4 * 1024 * 1024; // Use 4 MB for the default block size
protected final OutputStream out;
private final int blockSize;