Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: dd182d2745974569f8d7a949db8e73952df884224d8c748d4a68a959d9fab2ce
Ticket: 9e53a2d9d9a75bf50dd2392be190113851921303
Cache rendered syntax highlighting by blob hash
User & Date: ai-local on 2026-08-31 11:53:27
Changes

  1. Untracked field cmimetype: "text/x-markdown"
  2. comment changed to:
    Measured 2026-08-30 on the restored sqlite mirror.
    
    /r/sqlite/file/trunk/src/btree.c: TTFB 490ms, footer reports 461.6ms with no ops breakdown, so the time is in-process. src/select.c 474ms, src/sqlite.h.in 208ms. A 310KB timeline page renders in 12ms, so this is not general template cost — it is per-request work proportional to file size.
    
    A blob is immutable by hash, so its highlighted HTML is too. Cache keyed on (blob hash, lexer) and the 460ms becomes a map lookup on every repeat view. This is the single largest lever for the large-file pages.
    
    Acceptance: second request for the same blob is served from cache and reports an order-of-magnitude lower render time; cache is bounded (size or LRU) so a corpus sweep cannot exhaust memory; wipe+reingest changes nothing observable.
    
  3. priority changed to: "High"
  4. severity changed to: "Important"
  5. status changed to: "Open"
  6. subsystem changed to: "web"
  7. title changed to: "Cache rendered syntax highlighting by blob hash"
  8. type changed to: "Feature"