Skip to content

[APP-5810] Share precise deltas across EditDelta clones - #15810

Open
warp-agent-staging[bot] wants to merge 1 commit into
masterfrom
factory/app-5810-editdelta-clone
Open

[APP-5810] Share precise deltas across EditDelta clones#15810
warp-agent-staging[bot] wants to merge 1 commit into
masterfrom
factory/app-5810-editdelta-clone

Conversation

@warp-agent-staging

Copy link
Copy Markdown
Contributor

Description

EditDelta::precise_deltas now uses Arc<Vec<PreciseDelta>>, so clones retained by delayed rendering share the same allocation instead of copying every precise delta. All consumers remain read-only, and existing undo/redo behavior is preserved.

ticket_source=linear ticket_id=APP-5810

Linked Issue

APP-5810 contains the supporting memory-profile evidence.

  • The linked issue is labeled ready-to-spec or ready-to-implement. Not applicable; the linked work item is a Linear issue in progress.
  • Where appropriate, screenshots or a short video of the implementation are included below (especially for user-visible or UI changes). Not applicable; this is a non-rendered Rust data-model change.

Testing

  • ./script/format --check — passed

  • cargo check --manifest-path /workspace/warp-app-5810/Cargo.toml -p warp --lib — passed

  • cargo nextest run --manifest-path /workspace/warp-app-5810/Cargo.toml -p warp_editor — 502 passed

  • cargo nextest run --manifest-path /workspace/warp-app-5810/Cargo.toml -p warp_editor -E 'test(edit_delta_clone_shares_precise_delta_allocation)' — 1 passed

  • cargo clippy --manifest-path /workspace/warp-app-5810/Cargo.toml --workspace --exclude warp_completer --all-targets --tests -- -D warnings — passed

  • cargo clippy --manifest-path /workspace/warp-app-5810/Cargo.toml -p warp --all-targets --tests -- -D warnings — passed

  • cargo clippy --manifest-path /workspace/warp-app-5810/Cargo.toml -p warp_completer --all-targets --tests -- -D warnings — passed

  • I have manually tested my changes locally with ./script/run. Not applicable; the behavior is covered by unit tests and compile/lint checks.

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

CHANGELOG-NONE

Store EditDelta precise deltas behind Arc so delayed-rendering clones retain one allocation while preserving existing read-only behavior.

ticket_source=linear ticket_id=APP-5810

Co-Authored-By: Warp Agent <agent@warp.dev>
@cla-bot cla-bot Bot added the cla-signed label Sep 4, 2026
@warp-agent-staging warp-agent-staging Bot added the area:performance:memory Memory usage, allocation, leaks, and memory-bound performance. label Sep 4, 2026
@warp-agent-staging

Copy link
Copy Markdown
Contributor Author

This PR was generated with Warp.

Comment @warp-factory on this PR to send it follow-up work.

View run View conversation

@warp-agent-staging
warp-agent-staging Bot marked this pull request as ready for review September 4, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:performance:memory Memory usage, allocation, leaks, and memory-bound performance. cla-signed factory:wilson

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants