mirror of
https://github.com/xerial/snappy-java.git
synced 2025-07-23 14:04:39 +02:00
Use 4MB as the default block size
This commit is contained in:
parent
d184706dc1
commit
0644e3f657
@ -42,7 +42,7 @@ import java.io.OutputStream;
|
|||||||
*/
|
*/
|
||||||
public class SnappyOutputStream extends 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;
|
protected final OutputStream out;
|
||||||
private final int blockSize;
|
private final int blockSize;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user