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
- GPT-6 Astra beats Factorio with enemies in 44 in-game hours at ~$4,500 API cost — liminal_bardo · 2026-09-11
- 105 hidden bugs, 2 repos: DeepSeek V4.1 Flash fixes 24 at $1.80 vs Opus 5's 27 at $51.33 — ChartsJournalX · 2026-09-11
- Investment Analyst Asks How to Build a Claude-Based Diligence Agent Stack — Careless_Tie2286 · 2026-09-11
- Treating agents like 50 First Dates: a 3-layer context system so every conversation doesn't start from zero — evielync · 2026-09-11
- Running the Firefox MCP on Android via Termux, ngrok, and mcp-proxy — Nervous-Strain7544 · 2026-09-11
- SmolVM open-sources persistent computer infrastructure for agents that outlive chat sessions — aniketmaurya · 2026-09-11