Problem
Profiling needed for select_context with 100k+ node graphs. Current implementation uses Map lookups and Set operations which may degrade at scale.
Solution
Profile and optimize:
- Benchmark select_context on 10k, 50k, 100k node graphs
- Optimize hot paths (relevanceScore, community-aware selection)
- Consider HNSW index for embedding search on >50k nodes
- Cache index rebuilds only when graph changes
Acceptance Criteria
Effort: 1-2 days
Priority: Low
See: docs/proposals/memory-agent/04-implementation-roadmap.md (Phase 5)
Problem
Profiling needed for select_context with 100k+ node graphs. Current implementation uses Map lookups and Set operations which may degrade at scale.
Solution
Profile and optimize:
Acceptance Criteria
Effort: 1-2 days
Priority: Low
See: docs/proposals/memory-agent/04-implementation-roadmap.md (Phase 5)