perf(victory-gpu): use VecDeque for Queue::held and shrink drained buffers #424
No reviewers
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX!424
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-424"
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?
@Lewandox on GitHub · 2026-11-26 18:10 UTC · original
Lewandox:perf/queue-vecdeque-and-shrink-drained→main· +54 −9 · 1 files · 1 commits · closed without mergingSummary
Replaces O(N) front-removal with O(1)
VecDequepopping and shrinks retained spike capacity on drained queue buffers (third_party/victory/crates/victory-gpu/src/queue.rs):release_held:Queue::heldfromMutex<Vec<Held>>toMutex<VecDeque<Held>>, replacingheld.remove(0)(which shifted every remainingHelditem on every pop) withheld.pop_front().Queue::heldandWAITINGdown to a small warm cap when they drain empty after loading/async-submit bursts so peakVec/VecDequeallocations are not retained permanently.shrink_drainedreclaims oversized drained capacity while keeping small warm buffers untouched.Verification
cargo test -p victory-gpu --lib queue::tests(default and--features diagnostics)cargo xtask policyinsidethird_party/victory@Lewandox on GitHub · 2026-11-26 18:28 UTC · original
Closing as duplicate: already included in #411.
Pull request closed