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

Use zstandard for buffer compression #3545

Closed
ReillyBrogan opened this issue Nov 1, 2021 · 2 comments
Closed

Use zstandard for buffer compression #3545

ReillyBrogan opened this issue Nov 1, 2021 · 2 comments
Labels
enhancement Feature request or improve operations

Comments

@ReillyBrogan
Copy link

Is your feature request related to a problem? Please describe.

A relative newcomer to the compression scene, zstandard is at default settings superior to gzip in compression ratio, compression speed, AND decompression speed owing to it's highly optimized implementation on modern CPUs.

Adding it as an option for buffer chunk compression (with the goal of eventually making it the default) would be a pure win resulting in a reduction in buffer space usage and cpu utilization compared to using gzip. Typically applications/systems that switch to using zstd observe that reading compressed data into memory from disk is actually faster than reading uncompressed data into memory as the streaming decompression algorithm is actually faster than data can be read, even using fast SSDs. This may result in eventually it being worth it to use zstd-compression as the default even over uncompressed buffers.

Various benchmarks:

Describe the solution you'd like

This appears to be the most widely used and best-maintained Ruby library for integrating zstd compression into Ruby applications. Zstandard is also compatible with ARM and Windows platforms so it's supported everywhere Fluentd is supported today.

Describe alternatives you've considered

N/A

Additional context

No response

@kenhys kenhys added the feature request *Deprecated Label* Use enhancement label in general label Nov 2, 2021
@kenhys
Copy link
Contributor

kenhys commented Nov 2, 2021

@ReillyBrogan PR is welcome!

@kenhys kenhys added enhancement Feature request or improve operations and removed feature request *Deprecated Label* Use enhancement label in general labels Jul 31, 2024
@daipom
Copy link
Contributor

daipom commented Feb 19, 2025

@daipom daipom closed this as completed Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request or improve operations
Projects
None yet
Development

No branches or pull requests

3 participants