Skip to content

perf: enable thin LTO in release profile#648

Closed
persimmon16 wants to merge 1 commit intoNVIDIA:mainfrom
persimmon16:perf/release-lto
Closed

perf: enable thin LTO in release profile#648
persimmon16 wants to merge 1 commit intoNVIDIA:mainfrom
persimmon16:perf/release-lto

Conversation

@persimmon16
Copy link
Copy Markdown

Summary

  • Adds lto = "thin" to the workspace release profile for better cross-crate optimization
  • Thin LTO provides most of the binary size and performance benefits of full LTO with significantly faster link times

Related Issue

Production readiness audit finding (P3): release profile has strip = true but no LTO.

Changes

  • Cargo.toml (workspace root): Added lto = "thin" to [profile.release]

Testing

  • cargo check passes
  • Thin LTO is a well-established Rust optimization that requires no code changes

Checklist

  • Conventional commit format
  • No secrets committed
  • Scoped to the issue at hand

@persimmon16 persimmon16 requested a review from a team as a code owner March 28, 2026 19:50
@github-actions
Copy link
Copy Markdown

Thank you for your submission! We ask that you sign our Developer Certificate of Origin before we can accept your contribution. You can sign the DCO by adding a comment below using this text:


I have read the DCO document and I hereby sign the DCO.


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the DCO Assistant Lite bot.

@github-actions
Copy link
Copy Markdown

Thank you for your interest in contributing to OpenShell, @persimmon16.

This project uses a vouch system for first-time contributors. Before submitting a pull request, you need to be vouched by a maintainer.

To get vouched:

  1. Open a Vouch Request discussion.
  2. Describe what you want to change and why.
  3. Write in your own words — do not have an AI generate the request.
  4. A maintainer will comment /vouch if approved.
  5. Once vouched, open a new PR (preferred) or reopen this one after a few minutes.

See CONTRIBUTING.md for details.

@github-actions github-actions bot closed this Mar 28, 2026
@persimmon16 persimmon16 deleted the perf/release-lto branch March 28, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant