Skip to content

Speed up build by using gzip instead of xz#176

Merged
rmunn merged 1 commit into
masterfrom
chore/speed-up-build
Dec 9, 2021
Merged

Speed up build by using gzip instead of xz#176
rmunn merged 1 commit into
masterfrom
chore/speed-up-build

Conversation

@rmunn
Copy link
Copy Markdown
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