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

Speed up build by using gzip instead of xz #176

Merged
merged 1 commit into from
Dec 9, 2021
Merged

Conversation

rmunn
Copy link
Collaborator

@rmunn rmunn commented Dec 9, 2021

Since we're not going to upload the source packages the build process creates, there's no sense in sacrificing time for better compression ratios. Instead, we'll use gzip at the default compression value (6), which is a lot faster and produces files that are 40% larger than what xz produces. We'll continue to use xz on the binary package files; it's just the orig.tar.xz (now orig.tar.gz) files where we want to use lower compression to save time because they're so large.

On my local machine, the build process for one .deb package went from taking 7:55 to taking 4:06. That's almost half the time. Well worth it for a 40% increase in the size of a file that will not be uploaded anywhere.


This change is Reviewable

Since we're not going to upload the source packages the build process
creates, there's no sense in sacrificing time for better compression
ratios. Instead, we'll use gzip at the default compression value (6),
which is a lot faster and produces files that are 40% larger than what
xz produces. We'll continue to use xz on the binary package files; it's
just the orig.tar.xz (now orig.tar.gz) files where we want to use lower
compression to save time because they're so large.
@rmunn rmunn merged commit a2eae8a into master Dec 9, 2021
@rmunn rmunn deleted the chore/speed-up-build branch December 9, 2021 00:20
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.

1 participant