@claudedevs: Perf win of the day: Claude Code CLI now uses 2x less CPU at p99. Bun's garbage collector was...
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. https://t.co/icGc35LDQs
What happened
The Claude Code CLI's CPU usage has been optimized to consume half the resources during peak operations by adjusting the timing of Bun's garbage collector.
Why it matters
This optimization enhances the efficiency of the Claude Code CLI, allowing developers to run tasks with lower resource usage, which can lead to better performance in coding environments and applications.