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

Add zstd and flate compressions algorithms. #3064

Merged
merged 3 commits into from
Jan 7, 2021

Conversation

cyriltovena
Copy link
Contributor

@cyriltovena cyriltovena commented Dec 10, 2020

zstd has the highest ratio of all while flate is very simalar to gzip. I'm adding those mainly for posterity and to keep them benchmarked.

This also update gzip and lz4 library which both have been improved.

The benchmark has also been improved to remove the noise from line allocations, this means we now only test decompression speed.

I still think lz4 and snappy are the best at scale, but gzip improvement (15%) is most likely welcomed for the community.

Signed-off-by: Cyril Tovena cyril.tovena@gmail.com

@codecov-io
Copy link

Codecov Report

Merging #3064 (e94df24) into master (6d85c7c) will increase coverage by 0.08%.
The diff coverage is 79.16%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3064      +/-   ##
==========================================
+ Coverage   62.80%   62.89%   +0.08%     
==========================================
  Files         186      186              
  Lines       15949    15997      +48     
==========================================
+ Hits        10017    10061      +44     
- Misses       5002     5003       +1     
- Partials      930      933       +3     
Impacted Files Coverage Δ
pkg/chunkenc/pool.go 82.35% <77.27%> (-2.43%) ⬇️
pkg/chunkenc/interface.go 87.09% <100.00%> (+1.91%) ⬆️
pkg/logql/evaluator.go 90.23% <0.00%> (+0.35%) ⬆️
pkg/querier/queryrange/downstreamer.go 97.64% <0.00%> (+2.35%) ⬆️
pkg/querier/queryrange/limits.go 95.83% <0.00%> (+4.16%) ⬆️

Copy link
Member

@owen-d owen-d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but we should add some docs referencing this.

zstd has the highest ratio of all while flate is very simalar to gzip. I'm adding those mainly for posterity and to keep them benchmarked.

This also update gzip and lz4 library which both have been improved.

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
@cyriltovena cyriltovena merged commit f1c4ba2 into grafana:master Jan 7, 2021
@kavirajk kavirajk mentioned this pull request Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants