Reuse refresh workers and skip redundant page scans #396
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-logs
old-names
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!396
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-396"
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?
@Boneless-Sans on GitHub · 2026-11-28 04:19 UTC · original
Boneless-Sans:codex/texture-queue-refresh→main· +60028 −5438 · 206 files · 660 commits · closed without mergingChanges
The texture-queue and per-view-heap notification changes needed for the older local renderer are already in the upstream default branch.
@safesearch77 on GitHub · 2026-11-28 13:27 UTC · original
I read this against
main(fe7c6e5) and the changes look correct to me.unchanged_since_copydroppingtaken.iter().all(|&at| at != 0): this is redundant.CopiedPageskeepsuncopied_bitsset exactly whenat[i] == 0, and onlyset()writesat. The caller'srange_all_copied(from / PAGE - base, (to - 1) / PAGE - base)covers the same pages astaken = at[first - base .. ceil(to / PAGE) - base], under the sameranged != 0 ||condition.pub(crate)and now depends on that caller check. Adebug_assert!(ranged != 0 || taken.iter().all(|&at| at != 0))would keep the precondition visible without costing anything in release builds.wide_eachwithn < 2: no behaviour change.wide()already runs a single job inline, so this saves theArcandBox. Usingworkers().thread_countgives the same value aswide_threads()without callingavailable_parallelismon every call.No CI run is attached yet. Since
Shadow::nothing_newis on the refresh path (most refreshes there copy nothing), a before/after of the refresh time in the submitting thread's frame line would show what it is worth.@TaynanGT on GitHub · 2026-11-29 11:37 UTC · original
Thanks for checking the caller invariant against the actual CopiedPages representation. A debug assertion documenting that precondition makes sense. I'd like the submitting-thread refresh timing measured on matched runs, with copied bytes held comparable.
@TaynanGT on GitHub · 2026-11-30 17:09 UTC · original
mainhas moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the currentmainand open a new PR; I'll review it there.Pull request closed