Skip the read-back planner for empty scan ranges #24
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!24
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-24"
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 03:09 UTC · original
avt0m4t48:perf-skip-empty-read-back-scans→main· +4 −1 · 1 files · 1 commits · draftChange
Find the first nonempty range before allocating the read-back split planner's shared result collector. When every input range is empty, return one empty result per input range. For active calls, plan from the first nonempty range while preserving each scan's original index. Job boundaries and result order are unchanged.
Verification
A synthetic differential replay compiled the exact before-and-after planner from the checkout. It matched the owned-buffer oracle across 1,719 comparisons per compiler target, covering empty and reversed ranges, scan bounds, sparse and dense changes, and concurrent completion in different orders. An independent replay also matched worker event counts on the three fork queues.
The all-empty path now makes one fewer allocation (48 bytes in the Linux fixture). With 128 empty ranges, two optimised Linux compiler configurations reduced elapsed time by 34–37% in 13 paired synthetic trials. The single short active scan varied from 1% faster to 2% slower and mixed active scans were about 1% slower. The fixture uses owned CPU buffers and does not measure Windows scheduling, driver cost or gameplay frame times. The staged asset policy passed.
Standalone GPU tests and the combined workspace's tests type-checked for Windows x64 MSVC with diagnostics and pure-Rust BLAKE3. The Linux host used a metadata-only mimalloc declaration because it lacks the MSVC archiver.
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.