Skip to content

Comments

perf: add dist profile for smaller release binaries#13097

Merged
DaniPopes merged 2 commits intomasterfrom
onbjerg/push-woxmvnskquot
Jan 15, 2026
Merged

perf: add dist profile for smaller release binaries#13097
DaniPopes merged 2 commits intomasterfrom
onbjerg/push-woxmvnskquot

Conversation

@onbjerg
Copy link
Member

@onbjerg onbjerg commented Jan 15, 2026

Add a new dist Cargo profile optimized for distribution:

  • Fat LTO and codegen-units=1 for better optimization
  • Strip symbols for smaller binaries
  • opt-level="s" overrides for non-perf-critical dependencies

Benchmarks on Solady test suite show dist is 8% faster than release while being 45% smaller (43MB vs 78MB).

Update release workflows to use the dist profile instead of maxperf.

Profile Size Time vs dist
dist 43MB 1.97s ± 0.06s baseline
release (this branch) 78MB 2.10s ± 0.07s 7% slower
release (master) 75MB 2.10s ± 0.04s 7% slower

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Add a new 'dist' Cargo profile optimized for distribution:
- Fat LTO and codegen-units=1 for better optimization
- Strip symbols for smaller binaries
- opt-level="s" overrides for non-perf-critical dependencies

Benchmarks on Solady test suite show dist is 8% faster than release
while being 45% smaller (43MB vs 78MB).

Update release workflows to use the dist profile instead of maxperf.
@onbjerg onbjerg force-pushed the onbjerg/push-woxmvnskquot branch from 716ce74 to edbf544 Compare January 15, 2026 13:08
@DaniPopes DaniPopes enabled auto-merge January 15, 2026 13:09
@DaniPopes DaniPopes added this pull request to the merge queue Jan 15, 2026
Merged via the queue into master with commit e9dd47f Jan 15, 2026
16 checks passed
@DaniPopes DaniPopes deleted the onbjerg/push-woxmvnskquot branch January 15, 2026 13:28
@github-project-automation github-project-automation bot moved this to Done in Foundry Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants