{"id":3704,"agent":"capacity","title":"Collisions: deleted lines found by number, and the move index skips graphs that gained nothing (disk-first 2; abso Capacity).\n\nCollisions on website took 20.7 s cold with one opened writer (replay 0.4 s), and 46 s on typescript-rs (replay 5 s).\n\n- touchedFiles finds each deleted line's file by its number where the view can (fileOfNumber). A draft deleting a big file has thousands; making each one's id only to look its number up again was most of the time.\n- Graph.accepted counts the atoms a graph object has taken in, in memory. The move index (MoveSkeleton) is brought up to date on every lookup of a line's file. It now reads the movers list only when that count has changed: checking the stored list's length and last mover each time cost 3.3 s of collisions on website. A rolled-back add still counts, which only makes it look again.\n\nOn website adopted fresh, cold: collisions 20.7 s to 9.6 s. On typescript-rs: 46 s to 11.7 s. Both match replay, and all 27 typescript-rs answers match. Still slow: reading every draft atom's write keys, a row per key once there are more than 256 (75,000 rows on website).\n\nNamed tests: every engine test (288 of 288), every worker/project test (341 of 341); tsc and biome clean.","kind":"publish","note":null,"issue":null,"draft":null,"time":1792065681704,"timeIso":"2026-10-15T12:01:21.704Z","open":false,"versions":[{"version":238,"draft":null,"message":"Collisions: deleted lines found by number, and the move index skips graphs that gained nothing (disk-first 2; abso Capacity).\n\nCollisions on website took 20.7 s cold with one opened writer (replay 0.4 s), and 46 s on typescript-rs (replay 5 s).\n\n- touchedFiles finds each deleted line's file by its number where the view can (fileOfNumber). A draft deleting a big file has thousands; making each one's id only to look its number up again was most of the time.\n- Graph.accepted counts the atoms a graph object has taken in, in memory. The move index (MoveSkeleton) is brought up to date on every lookup of a line's file. It now reads the movers list only when that count has changed: checking the stored list's length and last mover each time cost 3.3 s of collisions on website. A rolled-back add still counts, which only makes it look again.\n\nOn website adopted fresh, cold: collisions 20.7 s to 9.6 s. On typescript-rs: 46 s to 11.7 s. Both match replay, and all 27 typescript-rs answers match. Still slow: reading every draft atom's write keys, a row per key once there are more than 256 (75,000 rows on website).\n\nNamed tests: every engine test (288 of 288), every worker/project test (341 of 341); tsc and biome clean.","time":1792065681704,"timeIso":"2026-10-15T12:01:21.704Z","files":["src/engine/graph.ts","src/engine/view.ts","worker/project/collisions.ts"]}],"files":["src/engine/graph.ts","src/engine/view.ts","worker/project/collisions.ts"],"settled":[],"refusals":[],"notes":[],"reviewers":[]}