Skip the read-back planner for empty scan ranges #24

Open
github-bot wants to merge 1 commit from github-bot/gh-24 into main AGit
Owner

@⁠avt0m4t48 on GitHub · 2026-12-03 03:09 UTC · original
avt0m4t48:perf-skip-empty-read-back-scans → main · +4 −1 · 1 files · 1 commits · draft

Change

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.

**@⁠avt0m4t48** on GitHub · 2026-12-03 03:09 UTC · [original](https://github.com/linkoovosh/LinkoArts-build/pull/24) `avt0m4t48:perf-skip-empty-read-back-scans` → `main` · +4 −1 · 1 files · 1 commits · draft ### Change 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 05:21:49 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/24/head:github-bot/gh-24'
git switch 'github-bot/gh-24'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-24'
git switch 'github-bot/gh-24'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-24'
git switch 'github-bot/gh-24'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-24'
git switch 'main'
git merge --squash 'github-bot/gh-24'
git switch 'main'
git merge --ff-only 'github-bot/gh-24'
git switch 'main'
git merge 'github-bot/gh-24'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.