Skip to content

Measure and reduce CLI startup latency and distribution size #25

Open

Description

@Anheledir

Priority: P1 · Triage: 2026-10-26

User reports slow startup and a large EXE. Current publishing is self-contained single-file with native extraction.

Acceptance

  • Measure cold extraction and warm-cache startup, --version, dry-run and usable Home on Windows/Linux/macOS; record machine/build and repeated measurements.
  • Separate runtime/JIT, extraction, resources, settings/discovery and Home IPC costs; record executable/archive/cache sizes.
  • Remove avoidable work and publish before/after results plus a regression budget; preserve standalone installation, credentials, offline docs/licenses and scripting.

Related: #10, #17.

Activity

  1. added
    enhancementNew feature or request
    P1Next delivery: usability, installation and release blockers
    on Oct 26, 2026
  2. Anheledir commented on Oct 26, 2026

    @Anheledir
    OwnerAuthor

    Implementation in #59. Nine paired local Linux launches: warm version 133.70 → 29.15 ms, Home 464.61 → 187.99 ms; state preview remains within noise. Remove the missing-host connection wait and use a minimal bare-version bootstrap. The 76.6 MB executable is unchanged in size. Compression was measured (40.6 MB executable) and rejected for now because startup worsened and gzip size slightly increased. No native extraction files were observed for these commands on this Linux .NET 10 build; this is not evidence about Windows/macOS or cold OS startup.

    Reproducible benchmark, raw reports, limits and regression budget are in docs/performance/2026-10-26-startup.md. Native before/after benchmark workflow: https://github.com/Anheledir/SidePulse.NET/actions/runs/40317680557 . Keep #25 open for actual Windows console/ConPTY Home measurement and the remaining attribution/acceptance evidence. Size/AOT/trimming follow-up remains #26.

  3. Anheledir commented on Oct 26, 2026

    @Anheledir
    OwnerAuthor

    Measured startup work merged in #59. Final benchmark run: https://github.com/Anheledir/SidePulse.NET/actions/runs/40318063431 . Nine paired launches per mode; these are warm bundle-cache medians, not cold OS/antivirus or physical-device timings.

    Native runner Version before → after Home before → after
    measure (windows-latest) 229.88 ms → 72.15 ms Not measured: needs real console/ConPTY
    measure (macos-latest) 127.28 ms → 21.89 ms 465.6 ms → 98.45 ms
    measure (ubuntu-latest) 154.73 ms → 29.77 ms 457.24 ms → 175.32 ms

    The executable size is effectively unchanged. Compression was measured and remains disabled because startup worsened and gzip download size did not improve. Keep #25 open for actual Windows Home/console measurement and remaining attribution/acceptance. #26 owns the AOT/trimming size decision.

    Reproduction, regression budget and local raw reports: https://github.com/Anheledir/SidePulse.NET/blob/main/docs/performance/2026-10-26-startup.md . Native functional tests include install/PATH/update/rollback and full CLI startup probes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Next delivery: usability, installation and release blockersenhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions