{"id":3739,"agent":"capacity","title":"why: reasons pointing at a change indexed, and a moved line looked for among its push (disk-first 2; abso Capacity).\n\nwhy on abso, warm, one kept reader: 2.9 s a call with about 24,000 reads, 20,000 of them atoms.\n\n- Reasons in: why listed the changes whose reasons point at the line's change by reading every atom in the project. The graph now keeps, for each atom, the atoms whose reasons point at it, in seq order, once each (reasons-in, Graph.reasonsTo), from a fresh stored graph on. A graph made before keeps none, reasonsTo says undefined, and why looks at every atom as before.\n- Moved from: the trail looked for a deleted copy of a line's text among every atom within 5,000 of the change. Only atoms pushed with it can count, so where the change is published its version's atoms are the candidates (Project.versionAtoms, trail's pushmates). A change still in a draft goes with every other draft change, so it looks near by as before.\n- trail takes atoms' numbers from their ids instead of reading each atom.\n\nOn abso adopted fresh: why 244 ms on the first call, then 86 and 46 ms (was 2.9 s); 1,091 reads, then 469 and 73. It matches replay, which takes 951 ms. Heap after: 22.6 MB.\n\nNew test reasons-to: the atoms pointing at an atom, in seq order, once each, whatever the kind and however many reasons one gives, in memory and stored. A stored graph without the index says undefined. Every engine test (292 of 292), every worker/project test (341 of 341); tsc and biome clean.","kind":"publish","note":null,"issue":null,"draft":null,"time":1792072012356,"timeIso":"2026-10-15T13:46:52.356Z","open":false,"versions":[{"version":242,"draft":null,"message":"why: reasons pointing at a change indexed, and a moved line looked for among its push (disk-first 2; abso Capacity).\n\nwhy on abso, warm, one kept reader: 2.9 s a call with about 24,000 reads, 20,000 of them atoms.\n\n- Reasons in: why listed the changes whose reasons point at the line's change by reading every atom in the project. The graph now keeps, for each atom, the atoms whose reasons point at it, in seq order, once each (reasons-in, Graph.reasonsTo), from a fresh stored graph on. A graph made before keeps none, reasonsTo says undefined, and why looks at every atom as before.\n- Moved from: the trail looked for a deleted copy of a line's text among every atom within 5,000 of the change. Only atoms pushed with it can count, so where the change is published its version's atoms are the candidates (Project.versionAtoms, trail's pushmates). A change still in a draft goes with every other draft change, so it looks near by as before.\n- trail takes atoms' numbers from their ids instead of reading each atom.\n\nOn abso adopted fresh: why 244 ms on the first call, then 86 and 46 ms (was 2.9 s); 1,091 reads, then 469 and 73. It matches replay, which takes 951 ms. Heap after: 22.6 MB.\n\nNew test reasons-to: the atoms pointing at an atom, in seq order, once each, whatever the kind and however many reasons one gives, in memory and stored. A stored graph without the index says undefined. Every engine test (292 of 292), every worker/project test (341 of 341); tsc and biome clean.","time":1792072012356,"timeIso":"2026-10-15T13:46:52.356Z","files":["src/engine/graph.ts","src/engine/test/reasons-to.test.ts","worker/project/blame.ts","worker/project/project.ts","worker/project/trail.ts"]}],"files":["src/engine/graph.ts","src/engine/test/reasons-to.test.ts","worker/project/blame.ts","worker/project/project.ts","worker/project/trail.ts"],"settled":[],"refusals":[],"notes":[],"reviewers":[]}