Skip to content

Commit 7c4fbe2

Browse files
committed
Set the level for zstd best speed to 1
This change sets the zstd best speed level from 0 to 1. Compression level 0 means the default level will be used, which is level 3. The intent of speed is to use the fastest compression level so 1 is a more appropriate value. Note that zstd best speed is still under a feature flag so this change is just meant to evaluate the impact on our nightly benchmarks. Further testing is needed (wip) to remove the feature flag entirely.
1 parent abd2bdd commit 7c4fbe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/index/codec/zstd/Zstd814StoredFieldsFormat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public final class Zstd814StoredFieldsFormat extends Lucene90CompressingStoredFi
4848
public static final String MODE_KEY = Zstd814StoredFieldsFormat.class.getSimpleName() + ".mode";
4949

5050
public enum Mode {
51-
BEST_SPEED(0, BEST_SPEED_BLOCK_SIZE, 128),
51+
BEST_SPEED(1, BEST_SPEED_BLOCK_SIZE, 128),
5252
BEST_COMPRESSION(3, BEST_COMPRESSION_BLOCK_SIZE, 2048);
5353

5454
final int level, blockSizeInBytes, blockDocCount;

0 commit comments

Comments
 (0)