tracker
All repositories: gitoria
1.6 KB
# Mission 043 — trkmem part 1 (tracker.worldapi.org#45, TOP): stop materialising whole tables at bootCreator: 9 GB RAM and slow. Cause (Hybriel missions/388-trkmem-report.md): hl:mpackdb is on demand, but `find(null, null)` decodes EVERYrow into one array; the tracker called it ~45 times, five of them at boot over persons (621 K rows, 11 s, +5.6 GB) and episodes(1.4 M, 9 s, +3 GB) — ~54 % of the boot was GC pauses those arrays caused.Part 1 (this branch w43-trkmem):1. re-vendor plugins/ + bin/ to Hybriel master f9614007 (libmpackdb.so sha256 6fb3b9d6…, #202).2. boot: lib/bootscan.hl — ONE streamed `iterate(null, null)` pass per table: titles → catalog lists, slug map, search entries, short ids,cast photos; episodes → catalog dates; people → search entries, short ids, slug map, TMDB ids, /people's order. Each module keeps itslazy build (ensureIndex, ensureShortIds, …) from the same per-record functions (noteIndexShow, noteSlugsOf, indexShow, noteShortIdRow,noteCastProfiles, noteIndexPerson, noteSlugOfPerson, noteTmdbOfPerson, viewEntryOf). follows/watches/franchises boot scans stream too.3. measure old vs new, 4. gates.Part 2 (NOT done): the background jobs' `find(null, null)` (each blocks the single-threaded server for 19–74 s):merge.hl:85,107,113,155,159 · backfill.hl:46,95,136 · details.hl:53 · credits.hl:111 · collections.hl:46,50,51 · franchiseseed.hl:93,237 ·dailysync.hl:234 (moveCopiedSummaries, once, UPDATES while scanning) · franchises.hl:244,351,455,470,476,482,512 (request path, timelines/franchisestables are small) · small genre tables: catalog.hl:290, shows.hl:115,322, search.hl:251, people.hl:158.
Branches
Latest commits
- 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
- 15917f03Record PR workflow rule (gitoria#50)mre
- 942ac995status: paused workers statemre
- 44b934e5log: respawn cleanupmre
- 03a80097Log: Anton GC A/Bmre
- c7cdef62Log: Apollo STOP, workers pausedmre
- d0c083fbLog: usage stopmre
- c6d464e5Log: Apollo GO backlog, AP56 and BS1 startedmre
- 1eb6f1a1Missions AP56, BS1mre
- 4871f8adLog: AP52 live on day52, browser gate greenmre
- d9bf2988Merge ap52: day52, tracker#58 server argument, #51 modal close rule, #56 keyed season rowsmre
- c4a60ef2Log: RT52 retest passed, AP52 startedmre
- 83760a55Browser gate: search results belong to the address form of the typed text (tracker#52 navigate replace)mre
- 6e951d91AP52: show-page rows are keyed records; closing a season is one upsert and removes (tracker#56, hybriel#331)mre
- 3bb4ccddAP52: modal close button refers to its nested rule with Style.buttonModalX (tracker#51, hybriel#333)mre
- ba16933fAP52: login callback and title route are static handlers taking the server as third argument (tracker#58, hybriel#332)mre