Skip to content

Consider using lto = "thin" instead of lto = "fat" in Cargo.toml [much less RAM and time to build, ~same performance] #21826

@sozforex

Description

@sozforex

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIenhancementNew feature or requestperformance

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions