Repository navigation
docs/tasks/0141: switch dispatch measured, not built - #470
Merged
Merged
Conversation
Switch dispatch for body children and plain names (closed PR #468) traded +0.1..+1.35% Render instructions for fewer mispredicts in callgrind's last-target branch model only; the perf track rejected it. The write-up, the rejected wide variant, the header-inlining trap and the condition for reopening stay in the task file. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018j47FUYwQ9s69rR6Jesrwc
rmorozov
marked this pull request as ready for review
October 11, 2026 20:38
rmorozov
pushed a commit
that referenced
this pull request
Oct 11, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KMcWcpGwhiaEs33YjAgEV4
rmorozov
added a commit
that referenced
this pull request
Oct 11, 2026
Claude-Session: https://claude.ai/code/session_01KMcWcpGwhiaEs33YjAgEV4 Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Ruslan · project thread
Before: task 0141 (dispatch hot node kinds by a switch instead of virtual calls) was open and unmeasured.
After: 0141 is done as "measured, not built". The experiment in #468 (closed) cut simulated mispredicts by up to 71%, but only in callgrind's last-target branch model. It cost +0.1..+1.35% Render instructions, eight cases past the ±0.5% bar, so the perf track rejected it. The task file keeps the CI table, the branch-simulation figures, the rejected wide variant, the header-inlining trap (Load +1.22%), and the condition for reopening it: a gain of at least 3% wall time on a quiet machine with hardware counters.
How: docs-only, this task's file only; the index sync is the perf track's.
Roles: main session; the verifier ran one round on #468's code (ready). Red pushes on #468: none.
🤖 Generated with Claude Code
https://claude.ai/code/session_018j47FUYwQ9s69rR6Jesrwc