Skip to content
quarry History Of Ticket 073e11ce0566ae41edd6f8515773081afbcd54a9
Login

History Of Ticket 073e11ce0566ae41edd6f8515773081afbcd54a9

Artifacts Associated With Ticket 073e11ce0566ae41edd6f8515773081afbcd54a9

  1. Ticket change [8edee5e56e] (rid 4469) by ai-local on 2026-08-31 12:12:18:

    1. Untracked field cmimetype: "text/x-markdown"
    2. comment initialized to:
      highlight.Code has no size gate — every byte of every file is tokenised on every request, with no cache.
      
      The cost tracks TOKEN DENSITY, not file size, which is the tell: src/sqlite.h.in is the largest file at 559KB but the fastest at 208ms (mostly doc comments), while src/btree.c is 407KB of dense C at 490ms and select.c 337KB at 474ms. Highlighting dominates, not blob retrieval.
      
      Past a threshold, skip the lexer and emit a plain <pre>. Chroma emits a span per token, so this removes both the render cost and most of the 5.7x HTML blowup (btree.c: 407KB source becomes 2,335,223 bytes of HTML). GitHub does exactly this for large files, so the degradation is a known, expected one.
      
      This is the cheapest large-file fix and the only one that helps the FIRST view — a cache cannot. It is complementary to the highlight cache (9e53a2d9) and is subsumed later by windowing (a82ff129), which highlights only the visible window.
      
      Acceptance: a file past the threshold renders in well under 100ms as plain text with a visible notice saying why; below the threshold nothing changes; the threshold is one named constant.
      
    3. priority initialized to: "High"
    4. severity initialized to: "Important"
    5. status initialized to: "Open"
    6. subsystem initialized to: "web"
    7. title initialized to:
      Size-gate the syntax highlighter: plain text past a threshold
      
    8. type initialized to: "Feature"
  2. Ticket change [09ce4dcb49] (rid 4529) by ai-local on 2026-08-31 15:32:22:

    1. icomment:
      Landed in f4e226e5 then deliberately narrowed in 937b10d6. At 256KB it turned ten of sqlite's src files permanently grey, which trades the feature for the fix — the owner was right to push back. Now a 2MB safety valve that no real file hits; windowing (a82ff129) removed the need for a threshold at all. Vestigial and removable.
      
    2. mimetype: "text/x-markdown"
    3. resolution changed to: "Fixed"
    4. status changed to: "Closed"
  3. Ticket change [334550526b] (rid 12555) by zeitgeist on 2026-09-24 00:55:46:

    1. Untracked field number: "119"