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
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

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

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 3 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #20595

Powered by Codex Action

sozforex · 2 months ago

closing as it apparently has been considered and will be implemented soon. https://github.com/openai/codex/pull/23710