[pr-performance] Reuse ordered write-watch marks when bringing arena pages #34

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

@⁠avt0m4t48 on GitHub · 2026-12-03 04:26 UTC · original
avt0m4t48:perf-arena-write-marks → main · +18 −8 · 1 files · 1 commits · draft

Change

Reuse the ordered write-watch answer while visiting the requested 64 KiB pages. Each exact match advances the cursor. A partition search skips marks for pages left behind by the caller's existing guards. First takes still copy unconditionally, and an unavailable journal still triggers a refresh for previously taken pages. Empty journal answers and the existing copy and notification ordering retain their behavior.

Verification

Compared the original and patched page loops against an independent selection oracle for 61,440 synthetic queries per replay in two Linux compiler configurations. The query, ordered copy decisions, and held-page state matched. LinkoArts' optional deferral was also compared.

Pinned Linux medians for the extracted preparation loop over 15 paired rounds:

Pages and marks Original → cursor
512 dense 31.980 → 21.735 µs
64 mixed with previously examined pages 3.403 → 3.118 µs
512 with only the last page eligible 27.941 → 27.419 µs
1 page with no marks 61.37 → 61.38 ns
1 page with a matching mark 75.38 → 75.85 ns

These timings cover the page map and selection logic with an in-memory write-watch reply. Windows write-watch time, actual byte transfers, driver behavior, and gameplay were outside the fixture. The standalone GPU tests and integrated workspace tests type-checked for Windows x86-64 MSVC. The integrated check used a metadata-only declaration for the allocator and pure-Rust BLAKE3. The staged asset policy passed.

**@⁠avt0m4t48** on GitHub · 2026-12-03 04:26 UTC · [original](https://github.com/linkoovosh/LinkoArts-build/pull/34) `avt0m4t48:perf-arena-write-marks` → `main` · +18 −8 · 1 files · 1 commits · draft ## Change Reuse the ordered write-watch answer while visiting the requested 64 KiB pages. Each exact match advances the cursor. A partition search skips marks for pages left behind by the caller's existing guards. First takes still copy unconditionally, and an unavailable journal still triggers a refresh for previously taken pages. Empty journal answers and the existing copy and notification ordering retain their behavior. ## Verification Compared the original and patched page loops against an independent selection oracle for 61,440 synthetic queries per replay in two Linux compiler configurations. The query, ordered copy decisions, and held-page state matched. LinkoArts' optional deferral was also compared. Pinned Linux medians for the extracted preparation loop over 15 paired rounds: | Pages and marks | Original → cursor | | --- | ---: | | 512 dense | 31.980 → 21.735 µs | | 64 mixed with previously examined pages | 3.403 → 3.118 µs | | 512 with only the last page eligible | 27.941 → 27.419 µs | | 1 page with no marks | 61.37 → 61.38 ns | | 1 page with a matching mark | 75.38 → 75.85 ns | These timings cover the page map and selection logic with an in-memory write-watch reply. Windows write-watch time, actual byte transfers, driver behavior, and gameplay were outside the fixture. The standalone GPU tests and integrated workspace tests type-checked for Windows x86-64 MSVC. The integrated check used a metadata-only declaration for the allocator and pure-Rust BLAKE3. The staged asset policy passed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 05:22:23 +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/34/head:github-bot/gh-34'
git switch 'github-bot/gh-34'

Merge

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