mirror of
https://github.com/xerial/snappy-java.git
synced 2025-07-21 04:54:33 +02:00
Use 32kb block size according to suggestion by Alec Wysoker
This commit is contained in:
parent
e321bee6c1
commit
7795673e0c
@ -31,7 +31,7 @@ import java.io.OutputStream;
|
|||||||
* This class implements a stream filter for writing compressed data using
|
* This class implements a stream filter for writing compressed data using
|
||||||
* Snappy.
|
* 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}.
|
* compressed and then passed to the given {@link OutputStream}.
|
||||||
*
|
*
|
||||||
* The output data format is a sequence of (compressed chunk size, compressed
|
* 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
|
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;
|
protected final OutputStream out;
|
||||||
private final int blockSize;
|
private final int blockSize;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user