Overview
| Artifact ID: | f7bbb70d5a5d50b6518e3675a1de9ee3ee43807fe5a7deabef6f6e1e05dfe5e8 |
|---|---|
| Ticket: | a82ff129be7ca850a04cc8453ab92b8dda2f227f
Window large file pages the way diffs already are |
| User & Date: | ai-local on 2026-08-31 11:53:27 |
Changes
- Untracked field cmimetype: "text/x-markdown"
- comment changed to:
Syntax highlighting expands source ~5.7x: src/btree.c is 407KB of C and renders 2,335,223 bytes of HTML, because chroma emits a span per token. That blowup drives both the render cost and the transfer cost. Diffs already solved this — the windowed diff page measures 73ms/162KB. File pages never got the same treatment and still render every line of every file. Render the first N lines plus an incremental fetch for the rest, reusing the diff window mechanism (diff.Window and the data-on-intersect__once sentinel), with a no-script pager fallback. Acceptance: a 400KB source file first paints in well under a second; the rest arrives on scroll; no-script readers get a pager and see the whole file across pages.
- priority changed to: "High"
- severity changed to: "Important"
- status changed to: "Open"
- subsystem changed to: "web"
- title changed to: "Window large file pages the way diffs already are"
- type changed to: "Feature"