Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

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

  1. Untracked field cmimetype: "text/x-markdown"
  2. 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.
    
  3. priority changed to: "High"
  4. severity changed to: "Important"
  5. status changed to: "Open"
  6. subsystem changed to: "web"
  7. title changed to: "Window large file pages the way diffs already are"
  8. type changed to: "Feature"