MCPcopy Create free account
hub / github.com/agenticsorg/lean-agentic / demonstrateHashConsing

Method demonstrateHashConsing

npm/lean-agentic/src/node.js:38–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 }
37
38 demonstrateHashConsing() {
39 const result = this._inner.demonstrateHashConsing();
40 return JSON.stringify({
41 demo: "Hash-Consing",
42 all_equal: result,
43 explanation: "Identical terms share the same TermId! Equality is O(1) pointer comparison.",
44 speedup: "150x faster than structural equality"
45 });
46 }
47
48 getStats() {
49 const stats = this._inner.getStats();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected