source-foundry / ttfautohint-build

Build ttfautohint from source on Linux and macOS platforms
MIT License
27 stars 12 forks source link

Building one tool after another reduces temporary build space required dramatically #43

Open CodingMarkus opened 2 years ago

CodingMarkus commented 2 years ago

Currently the script is like this:

Yet if you were implementing #42, there are situations were it would make sense to organize the script as follows:

And now continue that loop again once for the other two tools.

How would that make a difference? When the script is running inside a virtual file system (VM, Docker, macOS Diskimage, etc.) these grow dynamically but they have a hard time shrinking again. Organizing the build process as suggested above results in way smaller virtual disk images in the end, as a lot less temporary space will be needed during the build process. It also makes it possible to run your scrips on machines with very little disk space available that currently would run out of space when running your script.

chrissimpkins commented 2 years ago

Very open to PR's to change it! Fire away.