Reuse the bound heap index for direct descriptor binding #26

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

@⁠avt0m4t48 on GitHub · 2026-12-03 03:30 UTC · original
avt0m4t48:perf-reuse-bound-descriptor-index → main · +17 −7 · 1 files · 1 commits · draft

Change

Reuse the descriptor index found during a direct table binding. Both searches use the same bound-heap iterator and follow binding order. Keep the indexed search out of the optional repeated-entry cache body and call it only from direct binding.

The shared return-value variant slowed the optional v3 cache fixture by about 44%. Outlining lookup for every caller addressed that case but slowed the default shader-root fixture. This patch confines the out-of-line lookup to the caller that reuses the index.

Verification

The replay matched 8,192 ordered bindings and follow-up index, span, and shader-root checks per compiler configuration, including the repeated-entry cache. It uses synthetic host descriptors and mirrors on Linux.

On the standalone fat-LTO default x86-64 build, the mixed direct fixture took 19.47 → 18.06 ns per entry. The repeated-entry cache took 131.49 → 85.64 ns in the default build and 88.98 → 86.87 ns in the v3 build. The default miss-only control took 7.27 → 8.65 ns. Root-value and fresh-table controls were within 2% in both builds. Timing uses 15 paired processes per configuration.

The standalone GPU tests and combined workspace tests type-checked for Windows x64 MSVC, with diagnostics and pure-Rust BLAKE3. The Linux host used a metadata-only mimalloc declaration. Staged asset policy passed. Windows recording time and gameplay frame times remain unmeasured.

**@⁠avt0m4t48** on GitHub · 2026-12-03 03:30 UTC · [original](https://github.com/linkoovosh/LinkoArts-build/pull/26) `avt0m4t48:perf-reuse-bound-descriptor-index` → `main` · +17 −7 · 1 files · 1 commits · draft ### Change Reuse the descriptor index found during a direct table binding. Both searches use the same bound-heap iterator and follow binding order. Keep the indexed search out of the optional repeated-entry cache body and call it only from direct binding. The shared return-value variant slowed the optional v3 cache fixture by about 44%. Outlining lookup for every caller addressed that case but slowed the default shader-root fixture. This patch confines the out-of-line lookup to the caller that reuses the index. ### Verification The replay matched 8,192 ordered bindings and follow-up index, span, and shader-root checks per compiler configuration, including the repeated-entry cache. It uses synthetic host descriptors and mirrors on Linux. On the standalone fat-LTO default x86-64 build, the mixed direct fixture took 19.47 → 18.06 ns per entry. The repeated-entry cache took 131.49 → 85.64 ns in the default build and 88.98 → 86.87 ns in the v3 build. The default miss-only control took 7.27 → 8.65 ns. Root-value and fresh-table controls were within 2% in both builds. Timing uses 15 paired processes per configuration. The standalone GPU tests and combined workspace tests type-checked for Windows x64 MSVC, with diagnostics and pure-Rust BLAKE3. The Linux host used a metadata-only mimalloc declaration. Staged asset policy passed. Windows recording time and gameplay frame times remain unmeasured.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 05:21:54 +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/26/head:github-bot/gh-26'
git switch 'github-bot/gh-26'

Merge

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