Repository navigation
perf: reuse warmed transition resources - #701
Merged
domgan-oai merged 2 commits intoAug 10, 2026
Merged
domgan-oai merged 2 commits into
domgan-oai merged 2 commits into
Conversation
domgan-oai
marked this pull request as ready for review
August 10, 2026 22:35
95 tasks done
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.
Summary
Correctness and scope
warmMemocold path.Production work
Existing authored async-composition dashboard, unchanged fixtures/resources, production minification, and interleaved real-Chromium baseline/candidate runs:
The eliminated duplicate creators were
badge,activity,activity-summary,insights, andinsights-chart; they previously ran when the dependentownerrequest started, before it settled. Same-source update medians were 106.10 ms versus 105.10 ms, within the fixed two-wave network-latency floor, so no wall-clock improvement is claimed. The affected application adds 185 raw bytes / 72 gzip bytes / 57 Brotli bytes; generic static-root, Suspense-transition, and hydration applications and the fixed 16-file compiler corpus are byte-identical.Validation
pnpm --config.verify-deps-before-run=false --config.enable-pre-post-scripts=false run typecheck.pnpm --config.verify-deps-before-run=false sync.git diff --check.Refs #673.
Provenance
agent-authored)Note
Medium Risk
Changes only the speculative
warmMemopath in held/promoted transitions, but incorrect harvest matching could skip needed fetches or break adoption; mitigated by scoped ancestor checks, tombstone behavior, and broad transition/async-composition tests.Overview
When a held or promoted transition starts a new warm episode after the dependent
ownerrequest begins, speculativewarmMemono longer re-runs creators for resources already warmed in the first round. It looks up the episode-agnostic warm harvest (HELD_SYNC_TRANSITION/PROMOTED_WARM_HARVEST) for a matching slot and dependencies under the transition origin, claims that occurrence viaCURRENT_WARM_CLAIMS, and skipscompute()—without consuming adoption or adding cache entries. Already-adopted harvest slots still act as tombstones so siblings do not restart factories.The async-composition benchmark update creator ceiling moves from 13 to 8 (matching init), with README and transition-plan docs updated to record P2 warm reuse. Regression tests in
parallel-use.test.tscover transition request ordering (two waves, held UI untilownersettles), independent roots during a pending transition, and no reuse after urgent supersession.Reviewed by Cursor Bugbot for commit 275d558. Bugbot is set up for automated code reviews on this repo. Configure here.