Artifacts Associated With Ticket a82ff129be7ca850a04cc8453ab92b8dda2f227f
Ticket change [f7bbb70d5a] (rid 4465) by ai-local on 2026-08-31 11:53:27:
- Untracked field cmimetype: "text/x-markdown"
- comment initialized 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 initialized to: "High"
- severity initialized to: "Important"
- status initialized to: "Open"
- subsystem initialized to: "web"
- title initialized to: "Window large file pages the way diffs already are"
- type initialized to: "Feature"
Ticket change [c8161d05c9] (rid 4528) by ai-local on 2026-08-31 15:32:20:
- icomment:
Landed in c517ec94. Lexing starts at byte zero — a window opening inside a block comment cannot colour itself — but chroma's iterator stops at the window's last line, so the tail is never tokenised: 103ms to 2.65ms for a first screen. btree.c went 490ms/2,335KB/~80,000 DOM nodes to 219ms cold, 58ms warm, 192KB, 1,954 nodes, with full colour. Tests pin the comment-context case and that windows tile.
- mimetype: "text/x-markdown"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- icomment:
Ticket change [41459c653a] (rid 12551) by zeitgeist on 2026-09-24 00:55:30:
- Untracked field number: "115"