Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

checkpoint: File edit:

rUva5c2dfced83c
diff --git a/v3/@claude-flow/memory/src/agentdb-backend.ts b/v3/@claude-flow/memory/src/agentdb-backend.ts
index 4d4c98981c..7da9c0100c 100644
--- a/v3/@claude-flow/memory/src/agentdb-backend.ts
+++ b/v3/@claude-flow/memory/src/agentdb-backend.ts
@@ -143,6 +143,9 @@ export class AgentDBBackend extends EventEmitter implements IMemoryBackend {
private namespaceIndex: Map<string, Set<string>> = new Map();
private keyIndex: Map<string, string> = new Map();
+ // O(1) reverse lookup for numeric ID -> string ID (fixes O(n) linear scan)
+ private numericToStringIdMap: Map<number, string> = new Map();
+
// Performance tracking
private stats = {
queryCount: 0,