perf(gpu): O(1) lock-free shadow::card_patches() via PATCHED_CARDS #11
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/ToLIManl--VIctory-Hydra!11
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/11/head"
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?
@justadudeinbulgaria on GitHub · 2026-11-29 21:13 UTC · original
justadudeinbulgaria:pr/o1-card-patches→main· +133 −9 · 1 files · 1 commits · closed without mergingProblem
shadow::card_patches(sent_as) locked CARDED and linearly iterated every card-backed shadow copy (~3,700+ buffers) on every submission, taking both c.dirty and c.patch mutexes on each copy even when zero or only a handful of buffers received masked patches.
Solution
Mirrors the existing TOUCHED fast-path design in crates/victory-gpu/src/shadow.rs:
Verification
@ToLIManl on GitHub · 2026-11-30 23:55 UTC · original
Ported cleanly onto \main\ in commit \869198.
Because the PR branch predated the clean-room history rewrite (\b745f28), the isolated \PATCHED_CARDS\ / lock-free \shadow::card_patches()\ optimization was ported cleanly with \Co-authored-by\ attribution and verified with \ictory-gpu\ release tests (\shadow::\ \39 passed, plus exact ignored equivalence test \1 passed) and a live RTX 3060 benchmark.
Pull request closed