This patch uses gzip's API to avoid writing uncompressed, then compressing.
Note that I dont really like passing both the gzip file handle and the regular file handle, but its only to a few functions, so its not that bad.
Differential D773
Writes a GZip file directly (instead of writing, then compressing) Authored by Campbell Barton (campbellbarton) on Sep 3 2014, 3:08 PM.
Details
This patch uses gzip's API to avoid writing uncompressed, then compressing. Note that I dont really like passing both the gzip file handle and the regular file handle, but its only to a few functions, so its not that bad.
Diff Detail Event TimelineComment Actions I agree with your comment about the filehandles being not super pretty but to me this makes so much sense that I just end up wondering why we ever did it the other way around. :)
| ||||||||||||||