Reuse the bound heap index for direct descriptor binding #26
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!26
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-26"
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:30 UTC · original
avt0m4t48:perf-reuse-bound-descriptor-index→main· +17 −7 · 1 files · 1 commits · draftChange
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.
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.