pi-mono/packages/chord/test/delta-tracker
Mario Zechner a92283056d fix(chord): Delta's tracker holds its one open change without a WeakRef
Chord and Durable change a document one transaction at a time, so a tracker registered a WeakRef per
change for competitors that never existed on their hot path. The WeakRef targets survived scavenges
and V8 could pretenure every overlay context into old space (47.5 MB promoted against 2 MB in a
tracker loop). The tracker now keeps its open change in a plain field and moves it into the weak
registry only when a second change opens; stale semantics are unchanged. A draft dropped without
prepare or abort stays referenced until the tracker's next change or adopt (at most one per tracker).
`stored` and `rawNodes` are created on first use.
2026-10-27 23:46:11 +00:00
..
retention.test.ts fix(chord): Delta's tracker holds its one open change without a WeakRef 2026-10-27 23:46:11 +00:00
retention.worker.ts fix(chord): Delta's tracker holds its one open change without a WeakRef 2026-10-27 23:46:11 +00:00
tracker.test.ts fix(chord): Delta's tracker holds its one open change without a WeakRef 2026-10-27 23:46:11 +00:00