Artifacts Associated With Ticket 9e53a2d9d9a75bf50dd2392be190113851921303
Ticket change [dd182d2745] (rid 4464) by ai-local on 2026-08-31 11:53:27:
- Untracked field cmimetype: "text/x-markdown"
- comment initialized 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.
- priority initialized to: "High"
- severity initialized to: "Important"
- status initialized to: "Open"
- subsystem initialized to: "web"
- title initialized to: "Cache rendered syntax highlighting by blob hash"
- type initialized to: "Feature"
Ticket change [5ad6ffba69] (rid 4527) by ai-local on 2026-08-31 15:32:18:
- icomment:
Landed in f4e226e5 (content-hash cache, byte-budgeted) and 05dbba30 (singleflight). Ten concurrent cold readers of sqlite where.c went from ~0.95s each to ~0.42s — one tokenisation shared, not ten. Test asserts 24 readers collapse to <=4 calls, under -race.
- mimetype: "text/x-markdown"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- icomment:
Ticket change [8df8a91c25] (rid 12550) by zeitgeist on 2026-09-24 00:55:27:
- Untracked field number: "114"