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

Zstd decoder #948

Merged
merged 16 commits into from
Sep 15, 2021
Merged

Zstd decoder #948

merged 16 commits into from
Sep 15, 2021

Conversation

joe-elliott
Copy link
Member

@joe-elliott joe-elliott commented Sep 13, 2021

What this PR does:

  • Use the zstd decoder instead of the streaming io.Reader for reads. Seeing a 10-20% increase in throughput when iterating a block and 10-20% decrease in compactor CPU with this change.
  • Update klauspost/compress dependency to latest

I also attempted the same change for the encoder/writing, but saw a performance regression so I left it out.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Joe Elliott <number101010@gmail.com>

sadness

Signed-off-by: Joe Elliott <number101010@gmail.com>

removed encoding

Signed-off-by: Joe Elliott <number101010@gmail.com>

duh

Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
This reverts commit 04bae4a.
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
This reverts commit 4b1e3cd.
This reverts commit b081970.
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Copy link
Contributor

@mdisibio mdisibio left a comment

Choose a reason for hiding this comment

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

lg (enough) tm !

@joe-elliott joe-elliott merged commit e976a08 into grafana:main Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants