[pr-performance] Look up only the previous buffer tier when registering a key #36
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!36
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-36"
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 04:44 UTC · original
avt0m4t48:perf-linko-buffer-previous-tier→main· +2 −2 · 1 files · 1 commits · draftChange
Read the old registration from the primary map to identify the only tier where its key can be present. For a fresh registration, go directly to inserting the new entry. This preserves the order of tier and primary-map updates and avoids adding any registry storage.
Verification
The mutation replay and three existing registry tests passed with both exact source variants. The checks cover overwrites within and across tiers, zero-length and upper-address registrations, equal-address ties, nested buffers, and ownership of the cached copy. Allocation and free counts matched across the timed fixtures.
Pinned Linux replay using fat LTO and one codegen unit. Each result uses 12 time comparisons:
The fixture models registry work and an inert owned copy. Resource destruction, the actual mix of registrations, Windows runtime and frame times were outside the measurement.
The Windows x86-64 MSVC GPU test targets and the integrated workspace test targets type-checked. The integrated workspace was checked with diagnostics enabled and disabled. The allocator declaration was used for metadata only, and the staged asset policy passed.
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.Merge
Merge the changes and update on Forgejo.