diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2020-02-12 05:00:08 +0000 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2020-03-05 22:13:57 +0000 |
commit | 7867641fd0e23c290a5ae2b8f04f685948b917e3 (patch) | |
tree | d1983f51a79079d112fca865fc4207abc244a4ae /Makefile | |
parent | a120bc54458c38636aec3f414af02f449ecaa44f (diff) | |
download | vyos-live-build-7867641fd0e23c290a5ae2b8f04f685948b917e3.tar.gz vyos-live-build-7867641fd0e23c290a5ae2b8f04f685948b917e3.zip |
firmware: save the compressed contents file to disk instead of decompressed
the existing logic was to decompress the contents file from the downloaded
archive to disk, then process it to obtain a package list. the largest
one by far is for 'main'; 'non-free' and 'contrib' are tiny in comparison.
for sid-amd64 currently, the archive file is 37 MB, while the decompressed
file it contains is 592.3 MB.
we always delete the files and download afresh (currently), and a previous
commit optimised by deleting the files once we're done with them to avoid
wasting disk space leaving them behind.
here we switch to storing the downloaded compressed file to disk instead,
reducing disk space usage (and IO) by hundreds of megabytes; piping the
decompression directly into awk instead of having awk read from the stored
file.
this moves the appending of new items into the list back within the archive
area loop, which is fine since we're replacing the file for each loop now
so the previous issue relating to appending is of no concern.
Gbp-Dch: Short
Closes: #952910
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions