perf: compact merged write intervals in place #1232
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!1232
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1232"
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?
@spk-c on GitHub · 2026-11-26 00:59 UTC · original
spk-c:submit/interval-compaction→main· +47 −6 · 1 files · 2 commits · openSummary
Sort and compact the write interval vector in place instead of allocating an output vector. Preserve the reference implementation's merged interval semantics. Includes deterministic randomized parity regression. Does not include the superseded write-index experiment.
Validation
All CI steps passed for this isolated change against the corrected test baseline in the fork: https://github.com/spk-c/victory-fork/actions/runs/45731813852.
This submission is a single commit rebased onto upstream
a183ea2; exact-revision upstream CI is pending. Upstream's pre-existing CI failures are addressed separately in #1228. Draft pending baseline and upstream review. AI-assisted.Independent validation
Yoshi-233's report tested exact head
9a04be5and two reference revisions in a standalone Linux CPU harness: 1,679,616 interval-union cases per revision matched the reference, including a separate usize::MAX boundary case. Repeated covered-range updates caused zero allocations on the PR vs 10,000 on each reference. Trade-off: a collapsed large set retained capacity 4,097 vs 1 on references. No gameplay or process-memory measurement.Refresh against upstream
52ac4ecNew head
783abdd1a3fa9c3f1553a5a57d0be36aec8694cf; in-place interval compaction matched the allocating reference in the focused regression. Clean isolated workspace Cargo Check and strict all-feature Clippy passed. Original commits are preserved. PR-only diff check passed. Full upstream CI approval and source-size policy fix #1357 remain pending.@Yoshi-233 on GitHub · 2026-11-26 01:21 UTC · original
I independently tested
join_rangesfrom the parent (a183ea2), current main (c9092ec) and the PR (9a04be5) on x86-64 Linux with Rust 1.98.1. I compiled the function body from each revision into the same CPU harness.usize::MAXalso passed.[1, 3)into[(0, 4), (8, 10)]. A counting allocator saw 10,000 allocation/reallocation calls across 10,000 updates on both the parent and main, and zero on the PR.These are allocator counts and correctness checks on synthetic inputs. I did not measure in-game frame time or process memory.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.