-
Notifications
You must be signed in to change notification settings - Fork 21
Wasm binary size budget + link-time optimization audit #18
Copy link
Copy link
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programauditProduces a written report as primary deliverableProduces a written report as primary deliverabledripsFunded via Drips NetworkFunded via Drips Networkhelp wantedExtra attention is neededExtra attention is neededperfPerformance / optimizationPerformance / optimizationstellarTouches Stellar / Soroban codeTouches Stellar / Soroban code
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programauditProduces a written report as primary deliverableProduces a written report as primary deliverabledripsFunded via Drips NetworkFunded via Drips Networkhelp wantedExtra attention is neededExtra attention is neededperfPerformance / optimizationPerformance / optimizationstellarTouches Stellar / Soroban codeTouches Stellar / Soroban code
Type
Fields
Give feedbackNo fields configured for issues without a type.
Labels:
Stellar Wave,stellar,perf,audit,drips,help-wantedTier: M (2–4 days)
Type: perf / audit
Context
Soroban enforces hard upload size limits on contract Wasm. As Wraith's Stellar contracts grow (especially
wraith-namesat ~363 LOC and growing), we're approaching the limits without knowing it. There's also a real fee implication: smaller Wasm is cheaper to deploy and re-deploy.Today nobody is watching binary size. We need a budget + monitoring + an initial optimization pass.
Scope
stellar contract optimize). Capture numbers incontracts/stellar/SIZE.md.panic_with_error!+ minimal error codes.String::fromwhere&strwould do? (Stack vs. heap matters for Wasm size.)[features]in eachCargo.toml.lto = "fat"andcodegen-units = 1in release profile.strip = "symbols").Acceptance criteria
SIZE.mdwith current + budget numbers.Why this matters
Hitting the Wasm upload limit mid-feature-development means an emergency refactor or a hard postponement. Catching this trend now is much cheaper than catching it later.
Resources