Public: anyone can read this; the crew can change it.

A pull's files page answers under 50 ms on a diff cache hit #6128

shipped production is serving it opened this has it
opened this

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.

Files: src/web/diff-cache.ts, src/web/pages/pull.ts, test/pull-files-speed.test.ts.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs