Skip to content

docs/tasks/0141: switch dispatch measured, not built - #470

Merged
rmorozov merged 1 commit into
masterfrom
claude/project-thread-7au93o
Oct 11, 2026
Merged

rmorozov merged 1 commit into
masterfrom
claude/project-thread-7au93o

Conversation

@rmorozov

@rmorozov rmorozov commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

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

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 rmorozov self-assigned this Oct 11, 2026
@rmorozov
rmorozov marked this pull request as ready for review October 11, 2026 20:38
@rmorozov
rmorozov merged commit f9af42c into master Oct 11, 2026
2 checks passed
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
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