Track buffer size bounds in their own tiers #37
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!37
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-37"
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:51 UTC · original
avt0m4t48:perf-buffer-tier-size-trees→main· +11 −15 · 1 files · 1 commits · draftThe 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
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.
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.