singularity-forge/packages/pi-coding-agent/src
Flux Labs e6d55f8aaf Perf/gsd startup speed (#497)
* docs: add startup performance analysis and optimization plan

Profiled GSD CLI startup finding 2.2s for --version and ~3.8s for
interactive mode. Identified 5 root causes with measured timings and
created a phased optimization plan targeting <0.2s for --version
and ~0.8s for interactive startup.

* perf: speed up GSD startup with lazy loading and fast paths

- Fast-path --version/-v and --help/-h in loader.ts before importing
  any heavy dependencies (2.2s → 0.15s, 14x faster)
- Lazy-load undici (~200ms) only when HTTP_PROXY env vars are set
- Skip initResources cpSync when managed-resources.json version
  matches current GSD version (~128ms saved per launch)
- Lazy-load Mistral SDK (~369ms) on first API call instead of startup
- Lazy-load Google GenAI SDK (~186ms) on first API call instead of
  startup
- Parallelize extension loading with Promise.all() instead of
  sequential for-loop

---------

Co-authored-by: TÂCHES <afromanguy@me.com>
2026-03-15 13:33:43 -06:00
..
cli chore(M003/S04): auto-commit after reassess-roadmap 2026-03-15 08:33:13 -06:00
core Perf/gsd startup speed (#497) 2026-03-15 13:33:43 -06:00
modes feat(tui): add placeholder support to Input component 2026-03-15 07:23:59 +01:00
resources/extensions/memory fix: replace better-sqlite3 with sql.js (WASM) to fix install on Node 25+ (#356) 2026-03-14 07:41:24 -06:00
utils feat: wire native Rust image module into image processing pipeline 2026-03-13 13:41:53 -06:00
cli.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
config.ts feat: TTSR + blob/artifact storage (ported from oh-my-pi) 2026-03-13 08:43:56 -06:00
index.ts feat: memory extraction pipeline (#261) 2026-03-13 16:41:13 -06:00
main.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
migrations.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00