perf(lighting): bound global light selection
Replace over-cap full sorting with a retained exact top-k heap while preserving the accepted tie-order fallback. Differential tests lock randomized and Town Network-scale output, and the measured 463-light path cuts selector CPU by 29 percent without warmed allocations.
This commit is contained in:
parent
b3427554c3
commit
a2a1e5916d
5 changed files with 615 additions and 21 deletions
|
|
@ -101,7 +101,7 @@ with all optional consumers disabled.
|
|||
Landed evidence:
|
||||
[`../research/2026-07-25-slice-h-a4-frame-scratch.md`](../research/2026-07-25-slice-h-a4-frame-scratch.md).
|
||||
|
||||
## 3. H-b — exact light top-k
|
||||
## 3. H-b — exact light top-k — COMPLETE
|
||||
|
||||
Retail anchors:
|
||||
|
||||
|
|
@ -126,6 +126,13 @@ Gate: identical selected IDs and submission order for every fixture, identical
|
|||
Town Network screenshot, reduced overflow CPU/allocation, and AP-85 retired
|
||||
only after the visual evidence passes.
|
||||
|
||||
Landed evidence:
|
||||
[`../research/2026-07-25-slice-h-b-light-top-k-report.md`](../research/2026-07-25-slice-h-b-light-top-k-report.md).
|
||||
The deterministic differential fixtures preserve exact accepted output; the
|
||||
463-light diagnostic microbenchmark reduced selection CPU time by 29.1% with
|
||||
zero warmed allocations. AP-85 remains open because its retail dual-pool
|
||||
behavior is outside this performance-only unit.
|
||||
|
||||
## 4. H-c — ordered, allocation-conscious network I/O
|
||||
|
||||
Retail/transport invariants:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue