memoryweave/go/internal
xiaowei 6c1c21fadf perf(pagerank): O(V+E) 累加实现替代 O(V²) 全源遍历
旧实现每目标节点遍历全部源节点找边匹配 (943-961):
- 17628 nodes × 20 迭代 = 6.2亿次内层操作 → 单次 PageRank ~3 分钟
- 重启后多套触发器零值连锁 fire full consolidation → CPU 100% 持续 10+ 分钟

新实现先归一化每源节点总权重, 再沿出边把贡献累加到目标 (O(V+E)):
- 17628 nodes PageRank + 图谱维护: 3分钟 → <1 秒
- 重启风暴从 10+ 分钟 CPU 100% → 秒级无感

实测: 01:16:40 图谱维护开始 → 01:16:41 PageRank 更新 17628 nodes 完成
2026-09-06 01:20:21 +08:00
..
api fix(recall): Embedder http client 8s 超时 + decay 分批 AC-1 日志 2026-09-06 01:08:42 +08:00
consolidate fix(consolidate): eps 1.0->0.4 修复 DBSCAN 聚类失效 (clusters=1->34) 2026-09-05 18:13:53 +08:00
distill fix(distill): max_tokens 800→1200 — Agnes推理token预算不足 2026-08-20 01:13:06 +08:00
distributed
governance perf(pagerank): O(V+E) 累加实现替代 O(V²) 全源遍历 2026-09-06 01:20:21 +08:00
metrics
models
selfoptimize
storage fix(recall): Embedder http client 8s 超时 + decay 分批 AC-1 日志 2026-09-06 01:08:42 +08:00