Skip to content

[pr-performance] ArenaSkip: bypass full upload memory arenas - #4

Draft
VlREX wants to merge 1 commit into
mainfrom
perf/virex-arena-skip
Draft

VlREX wants to merge 1 commit into
mainfrom
perf/virex-arena-skip

Conversation

@VlREX

@VlREX VlREX commented Nov 28, 2026

Copy link
Copy Markdown
Owner

What it changes

Track free-block counts under the existing arena mutex and skip arenas that cannot satisfy a request before scanning their bitmaps. Preserve first-fit order, contiguous allocation, zeroing, block lookup, and arena lifetime. Fragmented arenas still use the original search. No new dependencies or game files.

Tests

Exhaustive 256 eight-block occupancy patterns × 10 request lengths against an independent windows-based oracle, including release restoration; synthetic 400-full-arena case and reuse. Existing gap test remains. Local execution pending.

Overlap

Searched open upstream PRs for upload.rs / arena / free blocks / gap. Related trustno1-coder#1062 concerns write-watch; trustno1-coder#1544 and trustno1-coder#1562 concern texture/pool budgets. No exact duplicate identified in this limited search. No claimed wall-clock speedup or FPS gain.

VlREX commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

VIREX Test Studio 3.1.0 — local validation PASS at d0b0ed29e4e88aaa2af5a24b32055621b02ab15d.

  • cargo check --workspace --locked: PASS (warnings present).
  • upload::tests::arena_free_count_preserves_first_fit_for_every_small_bitmap: PASS 3/3 (256 occupancy patterns × 10 request lengths × 3 = 7,680 synthetic cases).
  • upload::tests::full_arenas_are_skipped_and_released_space_is_reused: PASS 3/3 (400 full arenas per run).
  • upload::tests::a_gap_is_blocks_side_by_side: PASS.

Windows 10 build 19045, Ryzen 5 3600X, Radeon RX 9070 GRE, Cargo 1.98.1. All 7 targeted invocations passed. The tests use synthetic arena metadata; no comparative timing, real allocation throughput, GPU validation, FPS gain or full-crate suite claimed. Rust CI not verified. Automatic report delivery succeeded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant