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

Adaptive compression level #27

Open
annulen opened this issue Nov 17, 2015 · 0 comments
Open

Adaptive compression level #27

annulen opened this issue Nov 17, 2015 · 0 comments

Comments

@annulen
Copy link

annulen commented Nov 17, 2015

I'm using pigz to speed up transfer of large files from embedded device to server. It goes like this:

pigz -1 -p2 -c | curl -T - $url

My goal is to minimize total time of file compression&transmission. Problem is that I don't know beforehand what bandwidth is available for upload, and it can be quite small (e.g., 1 Mbit/sec). In this case it would be beneficial to use higher compression level.

Would it make sense if pigz supported adaptive compression level based on average write speed (in this case, to stdout)? E.g., start with 1 and increase it if write throughput is lower than compression throughput.

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