Reuse command-list references in late submissions #32

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

@⁠avt0m4t48 on GitHub · 2026-12-03 04:08 UTC · original
avt0m4t48:perf-reuse-late-submit-lists → main · +27 −14 · 1 files · 1 commits · draft

Change

The late submission path gathers host-list references to decide whether to split a submission. Reuse that ordered list when sending the intact submission. A proposed split releases the borrowed references before moving the owned lists. If the split returns the original lists, the references are rebuilt before submission. The free and waiting cut checks retain their order, and the sender switch is still evaluated only for a submission that will be sent.

Verification

An independent Linux replay matched 103,360 ordered call traces per source pin and CPU setting. It included split and rejected split paths, duplicate indices, sparse orders, empty orders and returned submissions. With a simulated submitter, the intact path went from two allocations to one. A 48-list fixture used 768 → 384 allocated bytes, excluding the input.

The following medians are from 13 alternating Linux x86-64 pairs on the public source.

Synthetic fixture Before After
One list, no cut 99.95 ns 88.12 ns
Eight lists, no cut 149.05 ns 133.80 ns
48 lists, no cut 331.80 ns 252.75 ns
24 lists, successive cuts 7435.79 ns 7381.03 ns
24 lists, rejected duplicate cut 304.05 ns 294.45 ns

The standalone GPU tests and the integrated workspace test targets type-checked for Windows MSVC with diagnostics, pure-Rust BLAKE3 and metadata-only allocator configuration. The changed file passed the staged asset policy. The replay measures CPU preparation with a simulated submitter. Native submission timing and gameplay frame times remain unmeasured.

**@⁠avt0m4t48** on GitHub · 2026-12-03 04:08 UTC · [original](https://github.com/linkoovosh/LinkoArts-build/pull/32) `avt0m4t48:perf-reuse-late-submit-lists` → `main` · +27 −14 · 1 files · 1 commits · draft ### Change The late submission path gathers host-list references to decide whether to split a submission. Reuse that ordered list when sending the intact submission. A proposed split releases the borrowed references before moving the owned lists. If the split returns the original lists, the references are rebuilt before submission. The free and waiting cut checks retain their order, and the sender switch is still evaluated only for a submission that will be sent. ### Verification An independent Linux replay matched 103,360 ordered call traces per source pin and CPU setting. It included split and rejected split paths, duplicate indices, sparse orders, empty orders and returned submissions. With a simulated submitter, the intact path went from two allocations to one. A 48-list fixture used 768 → 384 allocated bytes, excluding the input. The following medians are from 13 alternating Linux `x86-64` pairs on the public source. | Synthetic fixture | Before | After | | --- | ---: | ---: | | One list, no cut | 99.95 ns | 88.12 ns | | Eight lists, no cut | 149.05 ns | 133.80 ns | | 48 lists, no cut | 331.80 ns | 252.75 ns | | 24 lists, successive cuts | 7435.79 ns | 7381.03 ns | | 24 lists, rejected duplicate cut | 304.05 ns | 294.45 ns | The standalone GPU tests and the integrated workspace test targets type-checked for Windows MSVC with diagnostics, pure-Rust BLAKE3 and metadata-only allocator configuration. The changed file passed the staged asset policy. The replay measures CPU preparation with a simulated submitter. Native submission timing and gameplay frame times remain unmeasured.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 05:22:15 +00:00
This pull request has changes conflicting with the target branch.
  • crates/darner-gpu/src/host.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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