Skip to content

warp-core: edge reverse index for tick patch replay #152

Description

@flyingrobots

Tick patch replay currently needs to locate an existing edge by EdgeId when applying an UpsertEdge. Today this is implemented as an O(total_edges) scan across all outbound buckets.

Implement a reverse index in GraphStore (e.g., EdgeId -> from NodeId) so patch replay can migrate edges in O(bucket_edges) instead of O(total_edges).

Acceptance:

  • No behavioral change for state_root / commit_id semantics.
  • Clippy/tests/rustdoc gates remain green.
  • Tick patch apply no longer performs a full scan for UpsertEdge.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions