ClaudeDevs· @ClaudeDevs · X·· 2026-08-18AI 评分42
AI 导读
今日性能优化:Claude Code CLI 在 p99 下 CPU 使用量减少 2 倍。 Bun 的垃圾回收器此前按固定计时器运行,因此会在对话中途启动,恰好在 Claude Code 最繁忙时抢占 CPU。现在它会等到进程空闲时再执行。
正文 · 原文
Perf win of the day: Claude Code CLI now uses 2x less CPU at p99.
Bun's garbage collector was running on a fixed timer, so it would kick in mid-turn and steal CPU right when Claude Code was busiest. Now it waits until the process is idle.
来源:ClaudeDevs · x.com