@@ -1445,24 +1445,32 @@ type DBCompressionSettings struct {
14451445
14461446// Predefined compression settings.
14471447var (
1448- DBCompressionNone = UniformDBCompressionSettings (block .NoCompression )
1449- DBCompressionFastest = UniformDBCompressionSettings (block .FastestCompression )
1448+ DBCompressionNone = UniformDBCompressionSettings (block .NoCompression )
1449+ DBCompressionFastest = UniformDBCompressionSettings (block .FastestCompression )
1450+ DBCompressionFast = func () DBCompressionSettings {
1451+ cs := DBCompressionSettings {Name : "Fast" }
1452+ for i := 0 ; i < manifest .NumLevels - 1 ; i ++ {
1453+ cs .Levels [i ] = block .FastestCompression
1454+ }
1455+ cs .Levels [manifest .NumLevels - 1 ] = block .FastCompression
1456+ return cs
1457+ }()
14501458 DBCompressionBalanced = func () DBCompressionSettings {
14511459 cs := DBCompressionSettings {Name : "Balanced" }
14521460 for i := 0 ; i < manifest .NumLevels - 2 ; i ++ {
14531461 cs .Levels [i ] = block .FastestCompression
14541462 }
1455- cs .Levels [manifest .NumLevels - 2 ] = block .FastCompression // Zstd1 for value blocks.
1456- cs .Levels [manifest .NumLevels - 1 ] = block .BalancedCompression // Zstd1 for data and value blocks.
1463+ cs .Levels [manifest .NumLevels - 2 ] = block .FastCompression
1464+ cs .Levels [manifest .NumLevels - 1 ] = block .BalancedCompression
14571465 return cs
14581466 }()
14591467 DBCompressionGood = func () DBCompressionSettings {
14601468 cs := DBCompressionSettings {Name : "Good" }
14611469 for i := 0 ; i < manifest .NumLevels - 2 ; i ++ {
14621470 cs .Levels [i ] = block .FastestCompression
14631471 }
1464- cs .Levels [manifest .NumLevels - 2 ] = block .BalancedCompression // Zstd1 for data and value blocks.
1465- cs .Levels [manifest .NumLevels - 1 ] = block .GoodCompression // Zstd3 for data and value blocks.
1472+ cs .Levels [manifest .NumLevels - 2 ] = block .BalancedCompression
1473+ cs .Levels [manifest .NumLevels - 1 ] = block .GoodCompression
14661474 return cs
14671475 }()
14681476)
0 commit comments