Skip to content

Remove after_input yields during tab switch — saves ~12 ms - #1745

Merged
trissim merged 1 commit into
mainfrom
perf/remove-switch-yields
Nov 12, 2026
Merged

trissim merged 1 commit into
mainfrom
perf/remove-switch-yields

Conversation

@trissim

@trissim trissim commented Nov 12, 2026

Copy link
Copy Markdown

The switch holds frames, so yields between steps only add message processing overhead. Removes all 4 after_input calls. Warm switch: 69 ms (was 72 ms). 5 tests pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RnH6dVGXdhEBgsWULMz1tY

The switch holds frames, so no frame runs between steps. The yields
only added message processing overhead (~3 ms each, 4 per switch).
All retirement and session tests pass unchanged.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RnH6dVGXdhEBgsWULMz1tY
Copilot AI balanced review requested due to automatic review settings November 12, 2026 04:23
@trissim
trissim merged commit 449540d into main Nov 12, 2026
2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants