Skip to content

perf: optimize release build dependencies - #634

Draft
wan9chi wants to merge 1 commit into
mainfrom
agent/optimize-release-build-deps
Draft

perf: optimize release build dependencies#634
wan9chi wants to merge 1 commit into
mainfrom
agent/optimize-release-build-deps

Conversation

@wan9chi

@wan9chi wan9chi commented Aug 10, 2026

Copy link
Copy Markdown
Member

Motivation

Cargo compiles build dependencies at optimization level 0 by default. That includes artifact dependencies containing runtime code, so the workspace currently maintains a package override for every shipped artifact and can silently miss newly extracted runtime crates.

Apply the optimized release settings to the complete build-dependency graph instead. This removes the individual preload and N-API overrides, keeps artifact symbols stripped, and automatically covers future artifact dependencies and their runtime dependencies.

Co-authored-by: GPT-5 Codex <codex@openai.com>
@wan9chi wan9chi changed the title agent/optimize release build deps perf: optimize release build dependencies Aug 10, 2026
@github-actions

Copy link
Copy Markdown

fspy benchmark

linux

dynamic/launch             change  +1.69%  [ -7.42% ..  +9.57%]  overhead   +57.21%
dynamic/access             change  +0.10%  [ -2.76% .. +19.06%]  overhead    +6.41%
dynamic/access-relative    change  +0.54%  [-14.38% .. +11.87%]  overhead   +52.06%
static/launch              change  +0.98%  [ -5.70% ..  +8.53%]  overhead  +147.19%
static/access              change  +0.13%  [ -5.14% ..  +4.26%]  overhead  +731.74%
static/access-relative     change  +0.26%  [ -2.61% ..  +4.89%]  overhead +1167.24%

macos

dynamic/launch             change  -0.32%  [ -2.56% ..  +1.93%]  overhead  +213.64%
dynamic/access             change  +0.01%  [ -1.99% ..  +3.00%]  overhead    +6.41%
dynamic/access-relative    change  -1.06%  [ -4.55% ..  +2.11%]  overhead  +240.27%

windows

dynamic/launch             change  +0.19%  [ -5.16% ..  +4.35%]  overhead   +27.91%
dynamic/access             change  -0.18%  [ -4.56% ..  +2.49%]  overhead    +1.09%
dynamic/access-relative    change  -0.41%  [ -3.05% ..  +1.46%]  overhead    +1.73%

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