perf: skip ancestry scans for unmarked updates #146
main fromperf/skip-unmarked-ancestry·opened Ordinary state updates currently walk parent fibers looking for a transition boundary even when the updated fiber has no transition marker. Check the marker first, preserving the existing ancestor scan for marked updates.
Repeated mixed-depth setter workloads improved across Chrome, Firefox and WebKit; flat setters stayed near identical controls. Chrome repeat medians: baseline419.5ms/control418.7ms/candidate401.3ms. Firefox independent repeat:755/718/635ms; WebKit329/327/302ms. These are synthetic3000-update workloads, not application-wide claims. Independent six-sample allocation confirmation was near controls: mixed45,934,828/45,993,642/45,943,048 sampled bytes. No retained-memory benefit claimed.
Current-main validation at a2e7e129:2085 tests pass,91 existing skips, types/build and all existing source/built absolute size budgets pass. Focused transition/Suspense/batching/error coverage passes. Security review: only an internal conditional moves, no new dependencies, input handling, execution hooks or permissions. Required hosted CI/review remains.
Tanner approved the exact row deltas below, including Brotli. Commit 23185b0b pins the allowance to the measured base and source fingerprint, with coverage for all rows and rejected source/base/row mismatches. Refreshed validation is in progress. All React/JSX/server rows remain unchanged. The current handoff holds merge and release pending a verification report.
| Profile | Entry | React | Minified delta | Gzip delta | Brotli delta |
|---|---|---|---|---|---|
| full | dom/index | react19 | +4 | +0 | -30 |
| full | dom/index | react18 | +4 | +0 | -22 |
| full | dom/client | react19 | +4 | +1 | +19 |
| full | dom/client | react18 | +4 | +2 | +13 |
| full | client-total | react19 | +4 | +0 | -50 |
| full | client-total | react18 | +4 | +0 | +63 |
| default | dom/index | react19 | +4 | +0 | -6 |
| default | dom/index | react18 | +4 | +1 | +23 |
| default | dom/client | react19 | +4 | +0 | +1 |
| default | dom/client | react18 | +4 | +1 | +21 |
| default | client-total | react19 | +4 | +0 | -43 |
| default | client-total | react18 | +4 | +1 | -42 |
| nano | dom/index | react19 | +2 | +1 | -4 |
| nano | dom/index | react18 | +2 | +0 | +39 |
| nano | dom/client | react19 | +2 | +1 | -5 |
| nano | dom/client | react18 | +2 | +1 | -4 |
| nano | client-total | react19 | +2 | +2 | -17 |
| nano | client-total | react18 | +2 | +1 | +16 |
- 1
Important
Draft PR not reviewed#
Draft PRs are not automatically reviewed by default.
- Trigger a manual review
To automatically review draft PRs, update your CodeRabbit configuration:
reviews: auto_review: drafts: true- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Sign in to join this conversation.
🦋 Changeset detected#
Latest commit: 8676de05a44672b97a888d12b28abb51d1c0565d
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR