Repository navigation
Optimize direct-subject selector invalidation - #891
Merged
wieslawsoltes merged 1 commit intoSep 21, 2026
Merged
Conversation
5 tasks
wieslawsoltes
deleted the
perf/direct-subject-selector-invalidation-243
branch
September 21, 2026 03:10
This was referenced Sep 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Repeated same-class mutations in unchanged Code OSS were still feeding every matching final-compound selector through the routed invalidation planner. A typical startup transition scanned 800–1,300 dependency entries even when the changed element was the only possible invalidation subject.
This change sends exact final-compound subject dependencies directly to the subject cascade queue while retaining the compiled planner for ancestor, descendant, child, sibling, and fallback routes. It also adds an A/B escape hatch, bounded tracing, a 64-subject/512-rule scaling regression, and a dedicated CTest lane.
Advances #243.
Result
On unchanged Code OSS 645f29cc, exact WebScene a99eaf2, and AppScene cd0a02e:
The product-neutral regression records 65,664 planner lookups on the old path and zero on the direct path, with the same 128 cascades and computed styles.
Validation
The broad existing filters still contain unrelated baseline failures: live-form-state counts both the invalid form and control, and broader invalidation scaling has existing memory/tree-reaction ceilings. This PR does not change those paths.
Detailed evidence: docs/validation/direct-subject-selector-invalidation-243.md