Skip to content
quarry Check-in [937b10d6de]
Login

Check-in [937b10d6de]

Overview
Comment:the highlight gate is a safety valve, not a policy

256KB turned ten of sqlite's src files permanently grey, which trades the feature for the fix. Raised to 2MB; the per-blob cache carries the cost until windowing removes the need for a threshold at all.

Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 937b10d6de107cc93b8ff3ec6ae86c32580fa69e8625a1541506ff47b42e0015
User & Date: quarry on 2026-08-31 12:25:02.778
Other Links: manifest | tags
Context
2026-08-31
12:34
collapse concurrent highlight misses into one tokenisation

A read-through memo only helps once a value exists: ten cold readers of sqlite's where.c each took 0.95s against 0.42s for one, all tokenising the same immutable bytes. Safe because the value is a pure function of its key. x/sync was already in the module graph. check-in: 05dbba300d user: quarry tags: trunk

12:25
the highlight gate is a safety valve, not a policy

256KB turned ten of sqlite's src files permanently grey, which trades the feature for the fix. Raised to 2MB; the per-blob cache carries the cost until windowing removes the need for a threshold at all. check-in: 937b10d6de user: quarry tags: trunk

12:18
large files arrive: size-gate the highlighter and cache it by content

Highlighting was paid on every request with no cache, and its cost tracks token density: sqlite's btree.c, 407KB of dense C, took 490ms and rendered 2.3MB of HTML. Past 256KB the lexer is skipped and the page says so; below it, identical content is highlighted once. check-in: f4e226e5a4 user: quarry tags: trunk

Changes