tracker
All repositories: gitoria
1.1 KB
// UTF-8 ID/key pairs with numeric boundaries. length uses the catalog's two slots per row.payload = toBytes(0)bounds = []length = 0waste = 0fetch(Number i) {row = (i - i % 2) / 2at = row * 3 + i % 2return payload.text(bounds[at], bounds[at + 1])}insert(Number i, String id, String key) {a = toBytes(id)b = toBytes(key)start = payload.lengthpayload.append(&a)middle = payload.lengthpayload.append(&b)at = i / 2 * 3bounds.splice(at, 0, payload.length)bounds.splice(at, 0, middle)bounds.splice(at, 0, start)length = length + 2return null}remove(Number i) {at = i / 2 * 3waste = waste + bounds[at + 2] - bounds[at]bounds.splice(at, 3)length = length - 2if (waste > 1048576 && waste * 2 > payload.length) { compact() }return null}compact() {out = toBytes(0)for (let i = 0; i < bounds.length; i = i + 3) {id = toBytes(payload.text(bounds[i], bounds[i + 1]))key = toBytes(payload.text(bounds[i + 1], bounds[i + 2]))bounds[i] = out.lengthout.append(&id)bounds[i + 1] = out.lengthout.append(&key)bounds[i + 2] = out.length}payload = outwaste = 0return null}
Branches
Latest commits
- 5b3a5693Log: SR1b merged via PR 2, DP71 startedTracker
- 783957c2Merge branch 'sr1-search' into mainTracker
- 792b9652README: search results come from the routeTracker
- fd8570b1|||PR search: one server exchange per keystrokeTracker
- e8f5cbcaLog: SR1 result, SR1bTracker
- 8ad275a4Log/status: tracker 68, SR1Tracker
- f5a06a0fLog: gitoria push setup, SR1Tracker
- d6b109baMission SR1mre
- 608b7558Log: FF1 merged via PR #1mre
- 2939d94cMerge branch 'ff1-gate-failfast' into mainTracker
- c934361a|||PR tests: gates fail fast when the app exits during startmre
- d714ae42Log/status: AP56 closed out, FF1mre
- a429d088Mission FF1mre
- 03bbfba3Log: AP56c causemre
- 24845fe3Log: AP56b result, AP56cmre
- 6a6d71eaLog: gitoria membershipmre
- 8b842dc8Log + CONDUCTOR: gitoria PR switch-onmre
- 6bb7c20estatus: window 2026-11-09mre
- 5db84974Log: Apollo window GO, AP56b started, BS1 copy removedmre
- e84586a7Mission AP56bmre