Skip to content

[APP-5893] Reduce Merkle snapshot deserialization memory - #15909

Open
warp-agent-staging[bot] wants to merge 2 commits into
masterfrom
factory/app-5893-merkle-snapshot-memory
Open

[APP-5893] Reduce Merkle snapshot deserialization memory#15909
warp-agent-staging[bot] wants to merge 2 commits into
masterfrom
factory/app-5893-merkle-snapshot-memory

Conversation

@warp-agent-staging

@warp-agent-staging warp-agent-staging Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Description

Merkle snapshot reconstruction now reserves each serialized node's exact child capacity and shares one Arc<Path> across a file node, its fragment nodes, and reconstructed fragment metadata. This removes repeated path allocations without changing the serialized snapshot schema or path-based behavior.

The separate serde-buffered AIAgentContext / PersistedAIInputType / SkillDescriptor allocation cluster remains follow-up work and is intentionally out of scope.

Linked Issue

APP-5893

  • The linked issue is labeled ready-to-spec or ready-to-implement. — Linear issue; the GitHub label does not apply.
  • Where appropriate, screenshots or a short video of the implementation are included below. — Not applicable; no UI changes.

Testing

  • ./script/format — passed

  • cargo nextest run --manifest-path /workspace/warp/Cargo.toml -p ai — 385 passed, 0 skipped

  • cargo clippy --manifest-path /workspace/warp/Cargo.toml -p ai --all-targets --features local_fs -- -D warnings — passed

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

  • Full workspace all-features Clippy was attempted but is blocked by existing agent_mode_evals-gated execution-profile test imports and unrelated dead-code errors.

  • I have manually tested my changes locally with ./script/run — Not applicable to snapshot allocation behavior.

Agent Mode

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

CHANGELOG-NONE

@cla-bot cla-bot Bot added the cla-signed label Sep 10, 2026
@warp-agent-staging

Copy link
Copy Markdown
Contributor Author

This PR was generated with Warp.

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

View run View conversation

@warp-agent-staging warp-agent-staging Bot added the area:performance:memory Memory usage, allocation, leaks, and memory-bound performance. label Sep 10, 2026
@warp-agent-staging
warp-agent-staging Bot marked this pull request as ready for review September 10, 2026 07:32
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