[pr-performance] Stop scanning once the longest root-view window is found #35
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-logs
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/linkoovosh--LinkoArts-build!35
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-35"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@avt0m4t48 on GitHub · 2026-12-03 04:36 UTC · original
avt0m4t48:perf-ordered-window-tail→main· +3 −3 · 1 files · 1 commits · draftChange
The ordered loose-window map already visits candidates from lowest starting address to highest. A reusable tail must end at the same boundary, so the earliest eligible start is the longest. Return on that first match, preserving the selected key and the caller's fallback and lock.
This reduces CPU work where the NVIDIA launcher enables tails and the 1 MiB grid for detected RAM up to 16.5 GiB.
Verification
Extracted the actual selector and existing tail tests. Across 245,760 comparisons per source and CPU target, the old and patched selectors matched a separate oracle for the selected key, stored entry and new-window fallback.
Repeated pinned Linux runs using the LinkoArts release-style fat LTO configuration, 15 alternating pairs per case:
The timings cover the CPU map query. Results for the late match and miss show the cost of still visiting the full range. The fixture excludes the Windows lock, device operations, and gameplay frame timing.
Windows x86-64 MSVC standalone GPU test targets and combined workspace test targets type-checked. The workspace was checked with diagnostics enabled and disabled. The checks used pure-Rust BLAKE3 and a metadata-only allocator declaration. The staged asset policy passed.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.