Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/chunkenc: change default LZ4 buffer size to 64k. #1421

Merged
merged 5 commits into from
Dec 19, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Renamed LZ4 -> Lz4 to make lint happy.
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
  • Loading branch information
pstibrany committed Dec 17, 2019
commit 2c2c4638dbb05fe5ce1a04137f983002c292a60f
16 changes: 8 additions & 8 deletions pkg/chunkenc/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ var (
// Gzip is the gnu zip compression pool
Gzip = GzipPool{level: gzip.DefaultCompression}
// LZ4 is the l4z compression pool
LZ4_64k = LZ4Pool{bufferSize: 1 << 16}
LZ4_256k = LZ4Pool{bufferSize: 1 << 18}
LZ4_1M = LZ4Pool{bufferSize: 1 << 20}
LZ4_4M = LZ4Pool{bufferSize: 1 << 22}
Lz4_64k = LZ4Pool{bufferSize: 1 << 16}
Lz4_256k = LZ4Pool{bufferSize: 1 << 18}
Lz4_1M = LZ4Pool{bufferSize: 1 << 20}
Lz4_4M = LZ4Pool{bufferSize: 1 << 22}

// Snappy is the snappy compression pool
Snappy SnappyPool
Expand Down Expand Up @@ -64,13 +64,13 @@ func getReaderPool(enc Encoding) ReaderPool {
case EncGZIP:
return &Gzip
case EncLZ4_64k:
return &LZ4_64k
return &Lz4_64k
case EncLZ4_256k:
return &LZ4_256k
return &Lz4_256k
case EncLZ4_1M:
return &LZ4_1M
return &Lz4_1M
case EncLZ4_4M:
return &LZ4_4M
return &Lz4_4M
case EncSnappy:
return &Snappy
case EncNone:
Expand Down