Skip to content

Reduce startup overhead and benchmark native single-file launches - #59

Merged
Anheledir merged 2 commits into
mainfrom
perf/startup-baseline
Oct 26, 2026
Merged

Anheledir merged 2 commits into
mainfrom
perf/startup-baseline

Conversation

@Anheledir

@Anheledir Anheledir commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

Opening Home waited up to 300 ms for an absent background host, and even a bare version probe initialized the terminal and full command registry. Home now probes an immediately available connection without waiting for host startup; normal host lifecycle calls retain their waits. Installation/update startup probes use the full parser path (--version --no-interactive) so the fast version shortcut does not weaken replacement/rollback verification. Bare --version/-v use a minimal bootstrap, while combined flags retain normal CLI parsing.

Nine-pair local Linux measurements reduce warm Home from 465 to 188 ms and version from 134 to 29 ms. State preview remains within noise. The executable stays 76.6 MB; a measured bundle-compression experiment shrank it to 40.6 MB but added startup cost and slightly increased gzip size, so compression remains disabled. This Linux .NET 10 build extracted no native files for the measured commands; the report avoids generalizing that result to Windows/macOS.

Add a reproducible isolated-cache/PTY benchmark, raw measurements and a native Windows/Linux/macOS before/after workflow with a conservative regression budget. Extend CLI version/quiet equivalence and PTY missing/running-host coverage. Local validation: 138 .NET tests, ten tooling tests, CLI and PTY smoke, documentation checks pass. Native before/after benchmark jobs pass on Windows/Linux/macOS. Functional native builds/tests, install/PATH/update/rollback smoke, Quality and Security also pass on the final commit.

Part of #25; keep it open for actual Windows console/ConPTY Home measurements. Size reduction/AOT/trimming compatibility and deeper runtime profiling remain #26.

@Anheledir
Anheledir merged commit db69bed into main Oct 26, 2026
14 checks passed
@Anheledir
Anheledir deleted the perf/startup-baseline branch October 26, 2026 11:55
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