- MCP
- show on this site's /mcp
- CLI
- abso show 208 --json
- JSON
- /christopher/abso-core/versions/208?format=json
Compare on a stored writer takes its candidates from the kept version files of the versions between (abso Capacity): every file that differs between two shared versions changed in one between them. Before, it walked every atom either version's set holds. version-files.test.ts compares both ways, across a drop, against the in-memory project. On game's export, compare from 762 to 1525: 20 s to 5.4 s, same answer.
of shared·capacity··Not checked
Version 207 · Files at version 208
2 files, 21 lines added, 4 removed.
--- a/worker/project/test/version-files.test.ts
+++ b/worker/project/test/version-files.test.ts
@@ -1,6 +1,6 @@
11// Each version's changed files kept as it lands (abso Capacity, version-files.ts): a writer-backed project's log,
2−// path histories and shows match the in-memory project's through edits, new and removed files, a line taken out and
3−// put back with the same text, moves and a drop.
2+// path histories, shows and compares match the in-memory project's through edits, new and removed files, a line
44
@@ -52,4 +52,13 @@
5454 for (let v = 0; v <= oracle.version; v++) assert.deepEqual(project.show(v), oracle.show(v), `version ${v}`);
55+ // A compare reads the kept lists for the versions between (version-log.ts): both ways, and across the drop.
63+ assert.deepEqual(project.compare(from, to), oracle.compare(from, to), `compare ${from} to ${to}`);
--- a/worker/project/version-log.ts
+++ b/worker/project/version-log.ts
@@ -249,11 +249,19 @@
252− const a = host.at(space, from);
253− const b = host.at(space, to);
255+ // A stored writer keeps each shared version's changed files (version-files.ts, abso Capacity): every file that
256+ // differs between two versions changed in one between them, so those lists are the candidates, not every atom