Any testers for proposed opportunistic filesystem compression?

Eric A. Borisch eborisch at macports.org
Thu Apr 12 22:58:54 UTC 2018


https://github.com/macports/macports-base/pull/76

During the extract-from-package step, if bsdtar exists **and** supports
--hfsCompression, use the flag during the extraction.

To test:
 * make sure libarchive is installed
 * check disk usage
 * deactivate & re-activate a large port (llvm / gcc / clang)
 * check disk usage again. If everything is working, you should have more
space available.

I've been using it for months and have been very happy with the space
savings (especially on packages with lots of text files. *cough* compilers
*cough*.)

It is slower to extract, but I don't notice any slowdown after the that
point. Most Apple-installed tools are compressed, from the spot-checking
I’ve done.

Downsides:
 * Doesn't detect if the compression will be lost (and therefore pointless
work/time) when moving for activation. This is the case if different
mountpoints are involved for the extraction directory and the final
activation locations. Scrapped detection of this as corner case with
significantly increased complexity. (And it’s not broken in the corner
case, just burns some extra cycles during extraction.)
 * Slower to extract than when not in use -- shouldn't be a surprise.

Thanks,
  - Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20180412/07f29aec/attachment-0001.html>


More information about the macports-dev mailing list