gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit8d3b0f208d3b0f20widget: the franchise link's 44 px tap area no longer overlaps the Prequel/Sequel rowmre8d3b0f20/reports/046a-photoq.md

4.4 KB

  1. # Report 046-a — photoQueue in slices, the 22 s TTFB found and fixed, re-vendor 528bc89f — branch w46-photoq (NOT pushed, NOT deployed)
  2. Base w45-trkmem 31dcf2a. Commits: photoQueue slices · photoQueue guard · re-vendor 528bc89f (plugins mpackdb/time/web; bin/ copied from hybriel native/zig-out, git-ignored) · franchise-seed fix · report.
  3. ## 1. photoQueue
  4. people.hl: `photoQueueStart()` snapshots the people view's id list (already /people's order, in RAM), `photoQueueStep(c)` walks it from a cursor, fetches rows and keeps ids until sliceBudgetMs (15 ms, checked every 64 ids) is spent; jobs.hl photoTick calls it per 0.1 s tick, then proceeds as before. A non-row fetch result (damaged index, a Number) is skipped + counted (`scan.skipped`) — the old loop crashed on it (first real-data try: "reading 'tmdbId': the value is Number").
  5. Same output: tests/photoqueue.hl runs the old one-shot loop (inlined verbatim) and the sliced one in one process on the same store. Bulk fixture (231 persons; and with every 3rd/5th person marked so the predicate has both outcomes: 231 → 123 ids): SAME ORDER AND IDS both times, TRACKER_SLICE_MS=0. Mutation (drop id #100) → DIFFERENT, so the test can fail. REAL data (T6 tar copy, 599,901 persons): old 302,511 ids in ONE 50.8 s block; new 302,511 ids, **identical order**, 498 ticks, 18.5 s scanning in total, longest tick 462 ms (evidence photoqueue-real.txt). No deliberate order change.
  6. Not exercised in the run-B server: the photo job is the LAST start job (after the details repair of 9,415 titles); it had not started within 10 min.
  7. ## 2. The 22 s TTFB — reproduced (1st try) and fixed
  8. Run A (no token) on the final code: A1 reproduced it: `/` 21.06 s at 139 s after first 200, right after `merge done` (TTFB 0.37–0.45 s before and during merge prepare, so merge prepare itself is sliced fine). Server log: **`franchise seed: slow step, 22053 ms`**. Not a GC pause (max 4.5 s). The franchise seed's single build step → `supersedeCollections` asks `seededCoverOf(order)` for each of the 1,417 live timelines, and every ask re-read the whole timelines table (`find(null,null)`: 1,417 decodes) = 2 M decodes in one tick. Standalone probe on the real copy (tests/franchise-build-time.hl): supersedeCollections 10,393 ms (22 s inside the busy server).
  9. Fix (franchises.hl / franchiseseed.hl): `seededTimelines()` loaded once, `seededCoverIn(seeds, order)`; `seededCoverOf` is a thin wrapper (collections.hl unchanged). Same answer (first match in table order). Probe: 10,393 → 26 ms. Run A2 on the fix: no slow step, worst TTFB 4.67 s (a boot-scan GC at 24 s). franchiseseed gate 26/0.
  10. ## 3. Gates (ports 8700–8706, load 4–8), new = w46-photoq, old = main 6648ba4 (T9's old bin)
  11. browser 382/0 · kinds 32/0 · franchises 53/0 · pager 229/0 · franchiseseed 26/0 · check-theme 100 files 0 problems (old 91, 0) — all equal to old and to T11.
  12. ## 4. Real data, jobs ON, fake TMDB 404 (ports 8720/8721, HL_GC_STATS=1, TRACKER_SYNC=0, load 5), Hybriel 528bc89f
  13. | | first 200 | RSS boot / 60 s / 10 min | VmHWM | GC n, sum / max | TTFB all p95 / max |
  14. |---|---|---|---|---|---|
  15. | T11 B new | 149 s | 6.7 / 6.3 / 5.3 GB | 9.1 GB | 159, 132 s / 5.6 s | 151 ms / 5.7 s |
  16. | **T12 B (w46 + int 6)** | **120 s** | **6.7 / 6.4 / 6.4 GB** | **8.4 GB** | 149, 120 s / 5.5 s | **71 ms / 4.3 s** |
  17. Per page p95 / max: `/` 187 ms / 4.3 s (a boot GC @81 s); /movies 30 / 410 ms; /series/The-Simpsons 60 ms / 3.1 s; /search?q=love 403 ms / 3.0 s. 58 polls per page, all 200. (T11 B new: / 1002·396, Simpsons 5726·151.)
  18. Int 6 heal: log `persons.mpack: an index named a place that is no record; indexes rebuilt from the data file` (once); persons slices (tests/persons-skip-count.hl): 4096 slices, rows=599,901, **skipped=0** (T11: 553 non-rows); the merge persons fallback did not run (0 duplicate groups anyway; no "falling back" line). Pages 16/16 not re-compared this run. RSS at 10 min 6.4 GB vs 5.3.
  19. Boot scan 77 s (T11 ~88–95 s), merge prepare 109 s.
  20. ## Open
  21. - The photo job under a live token not measured in a server (starts after the repair); standalone queue build 18.5 s sliced, max tick 462 ms (probably the first tick / a GC).
  22. - timelineOfCollection (per collection of the seed file) still `find` per call: ~17 calls, ms — left.
  23. Evidence: /media/STORAGE/claude-scratch/atlas-evidence/T12/ (run-A1/A2/fnew.txt, ttfb-*.txt, server-*.log, gate logs, photoqueue-real.txt, franchise-build-time*.txt). Scripts: atlas/T12/{runA.sh,runB.sh,doA.sh,doB.sh,gates.sh,pq-real.sh}.

Branches

Latest commits

  • 8d3b0f20widget: the franchise link's 44 px tap area no longer overlaps the Prequel/Sequel rowmre
  • 1d98dcfdbrowser gate: the badges' size check reads the padding box (the 44 px tap area is transparent border)mre
  • 2f9e29ffreports/MK-mobile.md, deploy.sh GATES: tests/mobile.mjs, theme check markermre
  • 7cfc8ab5a season of more than 150 episodes starts closed on its title page; the phone gate checks itmre
  • 59095c59tests/mobile.mjs: the phone gate (390 px touch, tap targets, /franchises paging)mre
  • 105309detap targets: every row link, the TMDB/IMDb badges, the widget links, the franchise names and the login-failed link are 44 px high on a phonemre
  • f0b86c8efranchises: 40 loose timelines per page (/franchises/page/N) and a merge sort for the names (1,546 timelines: 20 s and 54,000 px before)mre
  • b9e841a7Merge branch 'sy-sync'mre
  • d1ae2701sync components.hybriel 4922f9c: modal and pagination 44 px targets (vendored copies, verbatim) (SY)mre
  • 043624b2theme: sync from layouts 4994037 (list rows stack, td word-keep, heading code, edited tap target)mre
  • 05d89fd0deploy: security gate (tests/security.mjs)mre
  • 2ae8a47bMerge branch 'sk-sec'mre
  • 8fee5d52sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
  • 944ad51eSK: report reports/SK-sec.md, LOGsk
  • 415487c1SK: import budget per user + id type check, gate checkssk
  • 7b8a4f74security audit SK: nosniff + image sandbox headers, face id checks, adult follow, login budget + new session at login, guest-link budget, tests/security.mjssk
  • f0f26c5areports: T18 section (gates, boot-gate, 3x3 table, search + short-id compare)mre
  • 2a8682a1deploy.sh GATES: tests/warmstart.mjsmre
  • 3761338breports/T17-boot.md: handoff (phase table, fix, numbers so far, open proof)mre
  • 52e09eb2boot: sync window 1000 ms (the gates ask for a complete start), README boot-time sectionmre