Skip to content

Commit

Permalink
PARQUET-2044: Enable ZSTD buffer pool by default (apache#903)
Browse files Browse the repository at this point in the history
This PR aims to enable ZSTD buffer pool by default to improve the performance.
The default value of config and documentation is updated.
  • Loading branch information
dongjoon-hyun authored May 11, 2021
1 parent 709fce1 commit a3a1ad4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion parquet-hadoop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ ParquetInputFormat to materialize records. It should be a the descendant class o

**Property:** `parquet.compression.codec.zstd.bufferPool.enabled`
**Description:** If it is true, [RecyclingBufferPool](https://github.com/luben/zstd-jni/blob/master/src/main/java/com/github/luben/zstd/RecyclingBufferPool.java) is used.
**Default value:** `false`
**Default value:** `true`

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
public class ZstandardCodec implements Configurable, CompressionCodec {

public final static String PARQUET_COMPRESS_ZSTD_BUFFERPOOL_ENABLED = "parquet.compression.codec.zstd.bufferPool.enabled";
public final static boolean DEFAULT_PARQUET_COMPRESS_ZSTD_BUFFERPOOL_ENABLED = false;
public final static boolean DEFAULT_PARQUET_COMPRESS_ZSTD_BUFFERPOOL_ENABLED = true;
public final static String PARQUET_COMPRESS_ZSTD_LEVEL = "parquet.compression.codec.zstd.level";
public final static int DEFAULT_PARQUET_COMPRESS_ZSTD_LEVEL = 3;
public final static String PARQUET_COMPRESS_ZSTD_WORKERS = "parquet.compression.codec.zstd.workers";
Expand Down

0 comments on commit a3a1ad4

Please sign in to comment.