Skip to content

perf(tree): preserve ranges through removed-root consumers - #13

Draft
Abe27342 wants to merge 1 commit into
abe27342-range-stack-batchingfrom
abe27342-range-stack-consumers
Draft

Abe27342 wants to merge 1 commit into
abe27342-range-stack-batchingfrom
abe27342-range-stack-consumers

Conversation

@Abe27342

Copy link
Copy Markdown
Owner

How contribute to this repo.

Guidelines for Pull Requests.

Description

Layer 4 of 5 in a draft, review-only fork stack.
Depends on Abe27342/FluidFramework#12.
Relates to AB#5509.

Keep relevantRemovedRoots discovery and refresher coverage requests range-sized, extract owned content slices, and adapt squashBuilds at retained-range and attachment boundaries.
Includes a user-facing changeset and event-time enrichment tests.

Scalar processBuilds/buildTrees and hydration remain explicitly deferred; this layer does not claim to remove those costs.

This is the unchanged patch from checkpoint b615071a3caf91084ccc397a9d9f6bef681bc7f2 in published source snapshot 9e0b0594f9345dde85738aba3787e8487818872c, cherry-picked onto the lower review layer so its validated clipping/documentation refinement remains intact.

Breaking Changes

None to the supported package API.

Reviewer Guidance

The review process is outlined in the pull request guidelines.

Inspect missing/covered spans, ownership and reference lifetimes, nonconsecutive detached-node ID runs within one field, and minimizer partial attachments.

Parent-run validation context, not independent checks of this isolated publication:

  • This stage's targeted suite: 386 passing.
  • Full alternate-stack pnpm -C packages\dds\tree build: passed.
  • Full alternate-stack tests: 9 smoke tests and 13,774 ESM tests passing; 365 pending; one failing Windows snapshotCompatibilityChecker path mismatch independently reproduced on the baseline.
  • Isolated legacy minimization tests have a pre-existing validation-order dependency. The parent run includes the normal RebaseValidation setup and does not weaken validators.
  • The clipping/documentation refinement subsequently applied to the source passed 101 parent-run index tests.

No dependency installation, package build, or test rerun was performed merely to publish this immutable validated patch; additional CI readiness was skipped for these publishing-only snapshots as selected in the parent session.
Publication checks verified the exact base, original author and commit message/coauthor, clean worktree, and stable patch-ID match (d20b24840efdcaa53077b15a2998db6775697401).

Replace remaining scalar consumer adapters with range-aware refresher queries and build squashing. Keep creation policy local to the temporary minimization forest, preserve event-time enrichment, and leave bulk initial builds and hydration unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@Abe27342
Abe27342 force-pushed the abe27342-range-stack-consumers branch from 1d00e1c to 7f3296e Compare November 20, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant