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 parallel compression of non-static writers #56

Open
tofay opened this issue Oct 1, 2024 · 0 comments · May be fixed by containers/ocidir-rs#29
Open

Support parallel compression of non-static writers #56

tofay opened this issue Oct 1, 2024 · 0 comments · May be fixed by containers/ocidir-rs#29

Comments

@tofay
Copy link

tofay commented Oct 1, 2024

I'm trying to use this crate with https://github.com/containers/ocidir-rs to create compressed container image layers, however the writer I need to wrap borrows data so doesn't satisfy the lifetime requirements of from_writer.

Would you be open to ParCompress allowing non-static writers by optionally accepting a scope on which the writer thread is spawned? I pushed an example to #55.

@tofay tofay linked a pull request Oct 1, 2024 that will close this issue
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 a pull request may close this issue.

1 participant