Versions 215 to 216
Lines 295–302 at 216 (were 295–300 at 215)
300302 const stronger = (a: RelocationInfo, b: RelocationInfo): boolean => graph.comparePriority(a.atom, b.atom) > 0;
Lines 367–391 at 216 (were 365–377 at 215)
367369
370+ /** The view whose moves this one may take, until it needs them all; then the view it took them from. */
373+
369375 * Take another view's resolved moves (abso Capacity), when both sets hold the very same atoms that move lines: the
370− * moves then resolve the same, and every line sits where it sits there. Checked here, so any caller may ask.
376+ * moves then resolve the same, and every line sits where it sits there. Checked when this view first needs all its
377+ * moves, so any caller may ask, and a view that only finds a few lines' files never resolves them.
373− if (from.graph !== this.graph || from.#hasMoves !== this.#hasMoves || !this.#hasMoves) return;
374− if (this.#relocs || from.#scratchMoves()) return;
380+ if (from.graph !== this.graph || from.#hasMoves !== this.#hasMoves || !this.#hasMoves || this.#relocs) return;
383+
Lines 393–421 at 216 (were 379–387 at 215)
382− this.#movedFrom = from.#movedInFrom();
384398
399+ /** Moved lines' relocations picked one at a time, before the view resolves them all (null: not moved here). */
401+
403+ * The relocation of moved line n that counts here, as #relocations picks it before any loop: right whenever the
404+ * walk that reached n goes on to a file's start, since only lines on a loop have their relocation set aside.
412+ if (this.#has(seqOf(e.r.atom)) && (!best || graph.comparePriority(e.r.atom, best.r.atom) > 0)) best = e;
418+
385419 /** Whether moves are resolved on disk for each layout: only a stored graph's view with more than MOVED_LINES_KEPT. */
Lines 487–507 at 216 (were 453–460 at 215)
453487 /** The file a node sits in, in this set: up by where lines were written, through the moves that count here. */
456− const relocs = this.#relocationsN();
492+ // One moved line at a time, until a walk comes back to a line it passed: then moves loop, and are resolved whole.
Lines 616–623 at 216 (were 569–574 at 215)
Lines 1011–1017 at 216 (were 962–967 at 215)
9641013 if (this.#relocsN) n += MAP_HEADER_BYTES + (MAP_ENTRY_BYTES + OBJECT_BYTES) * this.#relocsN.size;
- MCP
- compare on this site's /mcp
- CLI
- abso diff 215 216 src/engine/view.ts --json
- JSON
- /christopher/abso-core/compare/215..216?file=src%2Fengine%2Fview.ts&format=json