Consider using lto = "thin" instead of lto = "fat" in Cargo.toml [much less RAM and time to build, ~same performance]
Resolved 💬 2 comments Opened May 8, 2026 by sozforex Closed Jun 4, 2026
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:
https://github.com/googlefonts/fontc/issues/1359
https://github.com/rust-lang/cargo/issues/14719
https://nnethercote.github.io/perf-book/build-configuration.html?search=lto
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗