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

Avoid using pargzip for compression #558

Merged
merged 1 commit into from
Jul 22, 2023

Conversation

jonjohnsonjr
Copy link
Contributor

Switching from pargzip to pgzip showed much better efficiency over in apko, so let's do the same here to see if it frees up any resources during megabuilds.

For smaller sections (control and signature), this just uses klauspost's gzip implementation instead of pgzip since don't need parallel compression for such tiny inputs.

This will change the hashes of APKs because the compression will be different, but I don't believe we rely on reproducibility in melange.

Switching from pargzip to pgzip showed much better efficiency over in
apko, so let's do the same here to see if it frees up any resources
during megabuilds.

For smaller sections (control and signature), this just uses klauspost's
gzip implementation instead of pgzip since don't need parallel
compression for such tiny inputs.

This will change the hashes of APKs because the compression will be
different, but I don't believe we rely on reproducibility in melange.

Signed-off-by: Jon Johnson <jon.johnson@chainguard.dev>
@jonjohnsonjr jonjohnsonjr requested a review from a team as a code owner July 21, 2023 23:49
@jonjohnsonjr jonjohnsonjr requested review from luhring and removed request for a team July 21, 2023 23:49
@mattmoor mattmoor merged commit f7590fc into chainguard-dev:main Jul 22, 2023
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 this pull request may close these issues.

2 participants