Track buffer size bounds in their own tiers #37

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

@⁠avt0m4t48 on GitHub · 2026-12-03 04:51 UTC · original
avt0m4t48:perf-buffer-tier-size-trees → main · +11 −15 · 1 files · 1 commits · draft

The size-tier lookup currently searches a bounded range in the global size-count tree for each address tier it visits. Partition the size counts by the existing tier cutoffs so each lookup can take that tier's last key directly. The counts continue to distinguish duplicate sizes. The highest populated tier supplies the global maximum for overlap queries.

The address maps, registration and replacement order, inclusive range checks and tie handling follow the same path. The two changes also compose with #36 without a conflict.

Local verification

Synthetic Linux workload Public paired time change With #36 and the other integrated drafts
Repeated mixed spans −47.6% −46.4%
Repeated dense 12 MiB spans −68.1% −69.7%
First lookup in a separately populated registry −7.5% −11.9%
Fresh insert in one tier −1.3% +5.1%
Descending sole-maximum deletion, focused repeat +0.6% −2.9%

There were 12 paired timing rounds for the main suite and 24 for the focused deletion control, using Rust 1.98.1 with fat LTO on a Linux i7-7700HQ. Mixed spans interleave zero, 1-byte, 64-byte, 12 MiB and 64 MiB requests over a populated five-tier registry. The public mixed case took 897.4 ns before and 464.0 ns after. The figures cover the registry lookup after the caller's local cache misses.

The before/after implementations each matched an independent full-scan model across 98,304 mutations and 491,520 lookup queries on both revisions. The additional controls cover insertion, replacement, removal, duplicate maxima and bounds near u64::MAX. The fixture measured 96 extra inline bytes and 768 extra heap bytes retained after draining all five tiers. Lookup loops still allocate zero times.

Windows x86-64 MSVC GPU test targets and the combined workspace test targets were type-checked with pure-Rust BLAKE3 and a metadata-only allocator declaration. The staged asset policy passed. The timing fixture uses an inert GPU payload. Native resource destruction and gameplay FPS remain unmeasured.

**@⁠avt0m4t48** on GitHub · 2026-12-03 04:51 UTC · [original](https://github.com/linkoovosh/LinkoArts-build/pull/37) `avt0m4t48:perf-buffer-tier-size-trees` → `main` · +11 −15 · 1 files · 1 commits · draft The size-tier lookup currently searches a bounded range in the global size-count tree for each address tier it visits. Partition the size counts by the existing tier cutoffs so each lookup can take that tier's last key directly. The counts continue to distinguish duplicate sizes. The highest populated tier supplies the global maximum for overlap queries. The address maps, registration and replacement order, inclusive range checks and tie handling follow the same path. The two changes also compose with #36 without a conflict. ### Local verification | Synthetic Linux workload | Public paired time change | With #36 and the other integrated drafts | |---|---:|---:| | Repeated mixed spans | −47.6% | −46.4% | | Repeated dense 12 MiB spans | −68.1% | −69.7% | | First lookup in a separately populated registry | −7.5% | −11.9% | | Fresh insert in one tier | −1.3% | +5.1% | | Descending sole-maximum deletion, focused repeat | +0.6% | −2.9% | There were 12 paired timing rounds for the main suite and 24 for the focused deletion control, using Rust 1.98.1 with fat LTO on a Linux i7-7700HQ. Mixed spans interleave zero, 1-byte, 64-byte, 12 MiB and 64 MiB requests over a populated five-tier registry. The public mixed case took 897.4 ns before and 464.0 ns after. The figures cover the registry lookup after the caller's local cache misses. The before/after implementations each matched an independent full-scan model across 98,304 mutations and 491,520 lookup queries on both revisions. The additional controls cover insertion, replacement, removal, duplicate maxima and bounds near `u64::MAX`. The fixture measured 96 extra inline bytes and 768 extra heap bytes retained after draining all five tiers. Lookup loops still allocate zero times. Windows x86-64 MSVC GPU test targets and the combined workspace test targets were type-checked with pure-Rust BLAKE3 and a metadata-only allocator declaration. The staged asset policy passed. The timing fixture uses an inert GPU payload. Native resource destruction and gameplay FPS remain unmeasured.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 05:22:35 +00:00
This pull request has changes conflicting with the target branch.
  • crates/darner-gpu/src/shadow.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/37/head:github-bot/gh-37'
git switch 'github-bot/gh-37'

Merge

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