Measured on 2026-10-26: /trevato/forge/pulls/6078/files takes 100 ms on a cache hit (diff;dur=38.4;desc="hit", checks;dur=27.8, render;dur=26.8). A hit should cost almost nothing, and the checks read is slow for a single pull.
Done when:
[ ] A diff cache hit returns its parsed form without re-parsing, so diff is under 5 ms on a hit.
[ ] checks on the files page reads only the head's latest checks, in one query, under 3 ms.
[ ] A test with a 40-file pull asserts that the second request's diff phase reports hit and is under 5 ms.
Measured on 2026-10-26:
/trevato/forge/pulls/6078/filestakes 100 ms on a cache hit (diff;dur=38.4;desc="hit",checks;dur=27.8,render;dur=26.8). A hit should cost almost nothing, and the checks read is slow for a single pull.Done when:
diffis under 5 ms on a hit.checkson the files page reads only the head's latest checks, in one query, under 3 ms.diffphase reportshitand is under 5 ms.Files: src/web/diff-cache.ts, src/web/pages/pull.ts, test/pull-files-speed.test.ts.