ProllyTree: Probabilistic B-Trees for KV State Sync
ToolingComments
Wait, does the probabilistic nature mean it's like a Bloom filter... where you might get a false positive during the diff? That would be so interesting to see in practice...
Is this just a glorified Merkle tree with a new name? I want to know if it actually handles tombstone propagation more efficiently than the standard approach.
I wonder if the AI agent memory use case might be tricky. If an agent's state changes every few seconds, the constant re-hashing of a probabilistic tree could become a performance bottleneck.
Suppose we look at this through the lens of the current local-first movement. In that scenario, the network latency of a full corpus scan is so high that the B-tree complexity becomes a negligible cost.
For the small datasets OP mentioned, a simple write-ahead log with sequence numbers avoids the hashing overhead entirely. The math favors the simpler approach until the state exceeds a few hundred megabytes.