Speed up build by using gzip instead of xz #177
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 is #176, against
fieldworks8-master
rather thanmaster
.This change is