gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit613ae0ec613ae0ecMerge branch 'bs3' into mainTracker613ae0ec/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

  • 613ae0ecMerge branch 'bs3' into mainTracker
  • 1383264b|||PR BS3: keep shared synchronous sorting fastTracker
  • 63e5ba1a|||PR BS3: guard boot imports and share resumable sort buffersTracker
  • 310613f1Merge branch 'records-dp72' into mainTracker
  • 6f7b61ba|||PR records: deploy-swap fix live, Kunibert findingsTracker
  • c41587d2Merge branch 'bs2' into mainTracker
  • 0dd538a6|||PR BS2: finish the boot index in slices so a booting instance keeps answeringTracker
  • 019d5cedMerge branch 'records-1110' into mainTracker
  • f88ae8b9|||PR records: day56 toggle live, reviewTracker
  • b6b3bb4dMerge branch 'ap56e' into mainTracker
  • 29a26da9|||PR AP56e: guard hidden show helpers during session syncTracker
  • 7c9ec236|||PR AP56e: re-vendor Hybriel set day56 (source 36ae83a8, bin c1f595a2)Tracker
  • 4b54f6f9Merge branch 'records-audit' into mainTracker
  • cab4a3bc|||PR records: branch audit, PR-onlyTracker
  • 641e1c4cMerge branch 'records-dp71' into mainTracker
  • 85a6e9f5|||PR records: DP71 checked in ChromeTracker
  • f5be5f18records: gitoria PR-only planTracker
  • 46a37036records: DP71 liveTracker
  • 3bcb7039Status/log: DP71 in progressTracker
  • 5b3a5693Log: SR1b merged via PR 2, DP71 startedTracker