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

Check if reusing the encoder is worth it #103

Open
rklaehn opened this issue Jun 15, 2021 · 1 comment
Open

Check if reusing the encoder is worth it #103

rklaehn opened this issue Jun 15, 2021 · 1 comment

Comments

@rklaehn
Copy link
Contributor

rklaehn commented Jun 15, 2021

A lot of effort has been spent reusing decoders. But encoders are always created from scratch. Check if reusing encoders is worth it, or if the benefit is marginal.

@rklaehn
Copy link
Contributor Author

rklaehn commented Jun 15, 2021

My hunch is that compression is such an expensive operation that avoiding the allocation of a few buffers does not make a big difference, unlike decompression with is very fast with zstd. If there is a difference, you are most likely to see it with low zstd_level values.

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

No branches or pull requests

1 participant