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

Support ZstdCompressCtx/ZstdDecompressCtx in ZstdInputStream/ZstdOutputStream #272

Open
DeepController opened this issue Jul 25, 2023 · 0 comments

Comments

@DeepController
Copy link

Hi!

According to the manual

It is recommended to re-use ZSTD_CStream since it will play nicer with system's memory, by re-using already allocated memory.
note : since v1.3.0, ZSTD_CStream and ZSTD_CCtx are the same thing.

However, it does not mention the same for DStream.

Could we explore the option to let library user to manage the cycle of Compression/Decompression context so that it could be reused in multiple stream? It would be more performant and memory-friendlier.

Thanks!!

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