Skip to content

Adaptive compression level #27

Description

@annulen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions