PHASE_RECIPIENT_BUCKET_EMPTINESS_LEGACY · branch loop/it31 · base 4ec0b9ef1 · candidate d416be2f6 · took 1h 39m| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 21,551,152,620 | 21,547,599,835 | 4,000 | 5,387,344 | 2,372 | 2,219 |
| optimized | 21,507,924,951 | 21,503,093,258 | 4,000 | 5,376,377 | 2,614 | 2,464 |
perf: indicative only, not a clean timing.| Hardware counters (optimized / legacy) | Value | Reading |
|---|---|---|
| cycles, minimum of the repeats | +0.73% — cycles-neutral (same-arm spread 2.44%) | same within noise |
| IPC (instructions per cycle, higher is better) | 1.031 / 1.037 | same |
| backend stall / frontend stall (share of cycles) | 20.1% / 19.6% · 41.0% / 40.7% | same |
| L1D / L2D refills per 1k instructions (cache misses) | 13.03 / 13.00 · 11.25 / 11.14 | same |
| branch mispredicts per 1k instructions | 5.640 / 5.571 | same |
| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 77,446,512,729 | 77,452,393,714 | 11,418 | 6,783,102 | 19,862 | 12,865 |
| optimized | 77,041,714,296 | 77,056,502,383 | 11,418 | 6,748,039 | 19,461 | 12,943 |
perf: indicative only, not a clean timing.| Hardware counters (optimized / legacy) | Value | Reading |
|---|---|---|
| cycles, minimum of the repeats | +0.86% — cycles-neutral (same-arm spread 1.97%) | same within noise |
| IPC (instructions per cycle, higher is better) | 0.887 / 0.901 | same |
| backend stall / frontend stall (share of cycles) | 23.3% / 24.2% · 42.3% / 40.9% | same |
| L1D / L2D refills per 1k instructions (cache misses) | 17.51 / 17.51 · 13.98 / 13.90 | same |
| branch mispredicts per 1k instructions | 5.169 / 5.146 | same |
Mechanism. In OffZoneRecipientIndex::may_have_candidates and narrow_candidates (static_source_index.rs:115,148), check each bucket family's emptiness before probing it. Empty by_core and by_subtype maps require no traversal of the object's types or subtype strings; an empty by_permanent bucket requires no permanent-type scan. Preserve merging, sorting and deduplication for populated buckets.
Evidence. xn5.67, docs/stage0-decision-memo.md:L4904, references bench/reports/uprof-xn565-20260923-owners-all.txt: may_have_candidates owns 0.9% of process CPU and narrow_candidates owns 0.8%. These are component ceilings; the empty-bucket fraction is unmeasured. xn5.31.1 at L2996 confirms that borrowed subtype lookup and allocation-free presence queries are already retained; this removes remaining empty-map work.
Counter and kill threshold. Existing xn5.67 owner rows: may_have_candidates 0.9%, narrow_candidates 0.8%. Expected instruction reduction: 0.4–0.9% per action at 4,000 actions, an estimate requiring the loop's A/B gate.
Invariant. An empty bucket cannot contribute a candidate. Preserve the exact presence verdict and ordered candidate vector, including fallback handling. Add permanent differential tests covering an entirely empty index, each independently populated bucket family, mixed types, duplicate candidates and fallback-only indexes.
| Role | Harness / model | Time | Exit | Tokens in / out | Note |
|---|---|---|---|---|---|
| planner | codex / gpt-6.1-sol | 7m 11s | 0 | 2,302,353 / 9,146 | |
| executor | codex / gpt-6-luna | 45m 40s | 0 | 15,257,388 / 24,943 | |
| executor | codex / gpt-6-luna | 3m 45s | 0 | 16,146,988 / 29,868 | |
| reviewer | codex / gpt-6.1-sol | 0m 14s | 0 | 23,610 / 258 |
| Gate | Result | Exit | Detail |
|---|---|---|---|
| fmt | pass | 0 | cargo fmt --all -- --check |
| build | pass | 0 | pwsh -NoProfile -File scripts/bench_phase.ps1 -Mode build -CargoProfile bench-fast-inc -Label it31-build |
| ir1k | pass | 0 | Ir -0.19% within +/-1%, same-arm spread 0.0343% | optimized 21,505,777,323 vs legacy 21,547,505,205 instructions; fingerprints match: True |
| ir4k | FAIL | 0 | Ir -0.51% within +/-1%, same-arm spread 0.0367% | optimized 77,056,074,956 vs legacy 77,452,886,070 instructions; fingerprints match: True |
| check | pass | 0 | |
| focused | pass | 0 | |
| parity | pass | 0 | pwsh -NoProfile -File scripts/bench_phase.ps1 -Mode parity -Seeds 1,2,3,5,7,11,13 -Actions 1000 -CargoProfile bench-fast-inc -Label it31-parity |
Status: unknown (loop, instruction-count gate; wall-clock not yet confirmed)
Automated loop result on homelab (aarch64). Switch PHASE_RECIPIENT_BUCKET_EMPTINESS_LEGACY, mechanism class compute. Mechanism: In OffZoneRecipientIndex::may_have_candidates and narrow_candidates (static_source_index.rs:115,148), check each bucket family's emptiness before probing it. Empty by_core and by_subtype maps require no traversal of the object's types or subtype strings; an empty by_permanent bucket requires no permanent-type scan. Preserve merging, sorting and deduplication for populated buckets. Invariant: An empty bucket cannot contribute a candidate. Preserve the exact presence verdict and ordered candidate vector, including fallback handling. Add permanent differential tests covering an entirely empty index, each independently populated bucket family, mixed types, duplicate candidates and fallback-only indexes.
| gate | passed | detail |
|---|---|---|
| fmt | yes | cargo fmt --all -- --check |
| build | yes | pwsh -NoProfile -File scripts/bench_phase.ps1 -Mode build -CargoProfile bench-fa |
| ir1k | yes | Ir -0.19% within +/-1%, same-arm spread 0.0343% |
| ir4k | marginal: workstation check | Ir -0.51% within +/-1%, same-arm spread 0.0367% |
| check | yes | |
| focused | yes | |
| parity | yes | pwsh -NoProfile -File scripts/bench_phase.ps1 -Mode parity -Seeds 1,2,3,5,7,11,1 |
Wall-clock confirmation on the workstation is required before this counts as a speedup; instruction count is a screen, not a time prediction.
generated 2026-11-28 18:17:17 · read-only · refreshes every 30 s