{"draft":null,"from":146,"to":147,"files":[{"path":"src/engine/experimental/projection-sequence.ts","added":11,"removed":1,"diff":"--- a/src/engine/experimental/projection-sequence.ts\n+++ b/src/engine/experimental/projection-sequence.ts\n@@ -300,7 +300,17 @@\n \t\t\t\t\tsave(node);\n \t\t\t\t}\n \t\t\t} else throw Error(\"unknown operation\");\n-\t\t\tfor (const [id, node] of changed) map = this.set(map, id, node);\n+\t\t\t// Keep locator staging bounded even if a valid split/merge changes more\n+\t\t\t// than one batch. The enclosing transaction commits all batches together.\n+\t\t\tlet batch: Array<readonly [number, SequenceNode]> = [];\n+\t\t\tfor (const entry of changed) {\n+\t\t\t\tbatch.push(entry);\n+\t\t\t\tif (batch.length === 256) {\n+\t\t\t\t\tmap = this.#locator.setMany(map, batch);\n+\t\t\t\t\tbatch = [];\n+\t\t\t\t}\n+\t\t\t}\n+\t\t\tmap = this.#locator.setMany(map, batch);\n \t\t\treturn { map, root, next };\n \t\t});\n \t}"}],"unmatched":[]}