Versions 255 to 318
Lines 79–116 at 318 (were 79–92 at 255)
8181
83+ * A laid-out file's lines by author, from its visible lines' writers (abso Capacity): each writer's author once, instead
84+ * of making an atom id and a line id for every line (an agent's tree spent 0.4 s on that for its draft's files).
93+ const writers = (view as { visibleWriters?(path: string): readonly number[] }).visibleWriters?.call(view, path);
109+
83111function laidOutTotals(view: ReadView, path: string, authorOf: (id: AtomId) => string): StoredTotals | null {
85− const authors = new Map<string, number>();
86− for (const l of view.lines(path)) {
87− const author = authorOf(l.atom);
88− authors.set(author, (authors.get(author) ?? 0) + 1);
89− }
92116
- MCP
- compare on this site's /mcp
- CLI
- abso diff 255 318 worker/project/version-files.ts --json
- JSON
- /christopher/abso-core/compare/255..318?file=worker%2Fproject%2Fversion-files.ts&format=json