Qwen Code finds a 17.24 MiB eager import chain and keeps cutting cold-start latency
doudouOUC · ghdev · 2026-07-20
Qwen Code tracks the last cold-start optimization candidates after cutting 17.24 MiB of eager imports
An issue for QwenLM/qwen-code #7264 audits the ACP child process and finds an eager static import closure of 17.24 MiB across 2420 modules that gets parsed and evaluated before the child can answer initialize.
Measured impact of the lazy telemetry work
On a 2C4G benchmark host, 30 paired serial cold starts showed:
- process → first session: 1922.4 ms → 1778.0 ms, a 144.4 ms (7.5%) gain
- cold POST /session: 1237.2 ms → 1154.8 ms
- daemon listener ready: 687.5 ms → 627.4 ms
- telemetry on (outfile) channel.initialize: 1119.6 ms → 1107.3 ms
Remaining work
The issue lists follow-up candidates and marks some as already completed:
- protocol-split the telemetry implementation module
- defer ACP-child telemetry init until after the initialize response is sent
The write-up argues that the telemetry-on path still loads the same 2.16 MiB of code, just in a less blocking way, and that more cold-start wins are likely available from the remaining candidates.
More from coding & agent
- Anthropic researcher: 99% of engineers now run swarms of 300+ self-improving agents — AlishaOutridge · 2026-09-11
- Gergely Orosz: Shipping 10x PRs With AI Agents, Sites Fill With Small Regressions — ducha_aiki · 2026-09-11
- Same Echo Maze prompt, three frontier models: all passed visually but shipped the same hidden bug — eyishazyer · 2026-09-11
- Astra storyboards plus Minimax H3 per-shot generation boost video success rates — Hailuo_AI · 2026-09-11
- Codex tip: use Sol with Astra and Luna sub-agents to save usage — pvncher · 2026-09-11
- agents-best-practices: a provider-neutral Agent Skill for designing and auditing agentic harnesses — tom_doerr · 2026-09-11