# Claude Code CLI 优化：p99 CPU 占用减半

- 来源：Boris Cherny (@bcherny)
- 发布时间：2026-08-18 10:24
- AIHOT 分数：30
- AIHOT 链接：https://aihot.virxact.com/items/cmsy1hi7p0h44roz08t7o21vj
- 原文链接：https://x.com/bcherny/status/2089538781909332210

## AI 摘要

这样的小型体验优化积少成多。更多改进即将推出。

[引用 @ClaudeDevs]：今日性能优化：Claude Code CLI 在 p99 下 CPU 占用降低 2 倍。

Bun 的垃圾回收器此前按固定计时器运行，因此会在 Claude Code 最繁忙时中途触发并抢占 CPU。现在它会等待进程空闲后再执行。

## 正文

Small quality of life improvements like this add up. More on the way

### 引用推文

> ClaudeDevs：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 C...
