Consider using lto = "thin" instead of lto = "fat" in Cargo.toml for the release profile.
thin lto: ~30GB RAM, ~24 minutes to build, 205MB codex binary
fat lto: >60GB RAM, ~30 minutes to build, 191MB codex binary
Performance should be approximately the same.
For reference:
googlefonts/fontc#1359
rust-lang/cargo#14719
https://nnethercote.github.io/perf-book/build-configuration.html?search=lto
Consider using
lto = "thin"instead oflto = "fat"in Cargo.toml for the release profile.thin lto: ~30GB RAM, ~24 minutes to build, 205MB codex binary
fat lto: >60GB RAM, ~30 minutes to build, 191MB codex binary
Performance should be approximately the same.
For reference:
googlefonts/fontc#1359
rust-lang/cargo#14719
https://nnethercote.github.io/perf-book/build-configuration.html?search=lto