Skip to content
Source
Sign inSign up
TanStack/redact

perf: skip ancestry scans for unmarked updates #146

Opentannerlinsleywants to merge 5 commits intomain fromperf/skip-unmarked-ancestryopened

tannerlinsleycommented

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.

ProfileEntryReactMinified deltaGzip deltaBrotli delta
fulldom/indexreact19+4+0-30
fulldom/indexreact18+4+0-22
fulldom/clientreact19+4+1+19
fulldom/clientreact18+4+2+13
fullclient-totalreact19+4+0-50
fullclient-totalreact18+4+0+63
defaultdom/indexreact19+4+0-6
defaultdom/indexreact18+4+1+23
defaultdom/clientreact19+4+0+1
defaultdom/clientreact18+4+1+21
defaultclient-totalreact19+4+0-43
defaultclient-totalreact18+4+1-42
nanodom/indexreact19+2+1-4
nanodom/indexreact18+2+0+39
nanodom/clientreact19+2+1-5
nanodom/clientreact18+2+1-4
nanoclient-totalreact19+2+2-17
nanoclient-totalreact18+2+1+16
    1. changeset-bot[bot](GitHub profile, opens in a new tab)commented

      🦋 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
      NameType
      @tanstack/redactPatch

      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

    2. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      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.

      Share

Sign in to join this conversation.