Skip to content

[ROADMAP] Phase 2 — Speed (Rust core via PyO3) #22

@Wolfvin

Description

@Wolfvin

Goal

After Phase 1 (#20) solidifies the architecture, port hot-path components to Rust via PyO3. Target: match codebase-memory-mcp indexing speed while keeping all Python logic.

Checklist

  • [ROADMAP] Phase 1 — Solidify (Pure Python, no Rust yet) #21 — PyO3 Rust core setup (crate + maturin build + CI wheel publishing)
  • Port graph engine to Rust (BFS/DFS, node/edge storage)
  • Port index pipeline to Rust (RAM-first, bulk flush)
  • Port universal grammar loader to Rust (tree-sitter bindings)
  • Start expanding language support toward 50+ languages
  • Python pure-Python fallback when Rust extension unavailable

Definition of Done

  • Full scan 500-file repo: <200ms
  • Symbol query: <5ms
  • Graph traversal: <1ms
  • pip install codelens still works — user needs no Rust toolchain
  • Pre-built wheels published for macOS (arm64/amd64), Linux (amd64/arm64), Windows (amd64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    architectureCore architecture changeperformancePerformance improvement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions