gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmaind2e6d26bMerge branch 'records-park55' into mainTrackermain/missions/043-trkmem.md

1.6 KB

  1. # Mission 043 — trkmem part 1 (tracker.worldapi.org#45, TOP): stop materialising whole tables at boot
  2. Creator: 9 GB RAM and slow. Cause (Hybriel missions/388-trkmem-report.md): hl:mpackdb is on demand, but `find(null, null)` decodes EVERY
  3. row 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
  4. (1.4 M, 9 s, +3 GB) — ~54 % of the boot was GC pauses those arrays caused.
  5. Part 1 (this branch w43-trkmem):
  6. 1. re-vendor plugins/ + bin/ to Hybriel master f9614007 (libmpackdb.so sha256 6fb3b9d6…, #202).
  7. 2. boot: lib/bootscan.hl — ONE streamed `iterate(null, null)` pass per table: titles → catalog lists, slug map, search entries, short ids,
  8. cast photos; episodes → catalog dates; people → search entries, short ids, slug map, TMDB ids, /people's order. Each module keeps its
  9. lazy build (ensureIndex, ensureShortIds, …) from the same per-record functions (noteIndexShow, noteSlugsOf, indexShow, noteShortIdRow,
  10. noteCastProfiles, noteIndexPerson, noteSlugOfPerson, noteTmdbOfPerson, viewEntryOf). follows/watches/franchises boot scans stream too.
  11. 3. measure old vs new, 4. gates.
  12. Part 2 (NOT done): the background jobs' `find(null, null)` (each blocks the single-threaded server for 19–74 s):
  13. 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 ·
  14. dailysync.hl:234 (moveCopiedSummaries, once, UPDATES while scanning) · franchises.hl:244,351,455,470,476,482,512 (request path, timelines/franchises
  15. tables are small) · small genre tables: catalog.hl:290, shows.hl:115,322, search.hl:251, people.hl:158.

Branches

Latest commits

  • d2e6d26bMerge branch 'records-park55' into mainTracker
  • f567f025|||PR records: park #55, no Claude workers ruleTracker
  • c21aff6bMerge branch 'records-hm55c' into mainTracker
  • 9ba258d3|||PR records: HM55b resultTracker
  • 64f2d300Merge branch 'records-hm55b2' into mainTracker
  • ae3b80dc|||PR records: HM55b briefTracker
  • 7ef3cb3bMerge branch 'records-st55' into mainTracker
  • fec2e080|||PR records: STATUS HM55Tracker
  • 8e174918Merge branch 'records-hm55b' into mainTracker
  • b1ecee57|||PR records: HM55 stateTracker
  • 28eab08cMerge branch 'records-hm55' into mainTracker
  • d3edaa05|||PR records: HM55 start, PROCEDURES.mdTracker
  • 3059f86cMerge branch 'records-design-rule' into mainTracker
  • 421a4809|||PR records: his-design rule (Apollo 2026-11-13)Tracker
  • d1390692Merge branch 'records-dp75b' into mainTracker
  • a4d1a7d2|||PR records: later steps checked, branch auditTracker
  • e070e16fMerge branch 'records-dp75' into mainTracker
  • 642b4fa8|||PR records: DP75 day62 live, AP62 briefTracker
  • bfc4ea4dMerge branch 'ap62' into mainTracker
  • 2c95ac46|||PR AP62: re-vendor Hybriel set day62 (source 70341ad2, bin a54f5f08)Tracker