gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit5803cf4f5803cf4f|||PR vendor: Hybriel set-day59 and GC budget 32 MiBmre5803cf4f/reports/B1-blocks.md

3.3 KB

  1. # B1 — compact Markdown blocks (gitoria, README tab data)
  2. Branch `b1-blocks` (from main cd99d2f). Change: `lib/markdown.hl` only; the view `components/markdown.hl` is untouched.
  3. * Block = one flag naming its kind (`isP`/`isH1`/`isH2`/`isH3`/`isUl`/`isOl`/`isCode`/`isQuote`/`isTable`/`isHr` = true) plus only the fields that kind has
  4. (`spans`; `items` (+`start` for ol); `code`; `head`+`rows`). Was: 10 booleans + `spans items start code head rows` on EVERY block.
  5. * Span = `{ text, isText|isStrong|isEm|isStrongEm|isCode|isLink = true }` (+`href` for links only). Was: text + 6 booleans + href on every span (the bulk of the 607 KB).
  6. * NOT a literal `kind` string: a View `if` takes a member/field path, not a comparison ("hl:web: a View `if` takes a member, a field path … this one is an expression" — tried, the app does not boot). So the kind is the (single) present true field, the rest omitted. A `kind` string would need hl:web to allow `if (b.kind == 'p')` in a View (gap for Arachne, not worked around with JS).
  7. ## Proof 1 — rendered HTML byte-identical
  8. Newest backup (gitoria.worldapi.org-20261022-2202.tgz) extracted to a COPY (two copies: old and new server), 14 repos' homepages fetched as server-rendered HTML
  9. (Host: <repo>.localhost), seed script and `?v=` hashes and ports normalised: all 14 `cmp` identical (9 real READMEs: tracker 1655 lines, antcolony 1294, tickets 945, ident 744, routger, gitoria, notes, calendar, components; 3 without README).
  10. `termuplex` got the 2 005-line "longdoc" README (G2's generator); `email` got an edge README (h1–h5, empty `#`, strong/em/both, code, links incl. a refused `javascript:`, bare and `<…>` URLs, quote, hr, ul/ol with start 3, `1)`, wrapped item, table with inline spans, fenced js, tilde fence, unclosed fence): identical too.
  11. Client-rendered DOM (after the Code→Readme click in Chrome): `#homepage` innerHTML sha256 c5b6dfd2785a64a2 (640 282 chars), identical old/new, at 1280 and 390.
  12. Method sensitivity: the first compare run flagged differences from ports alone (cmp fails on any byte); tools: s/snap.sh.
  13. ## Proof 2 — value size and click→text, longdoc, headless real Chrome (/opt/google/chrome/chrome; lisbeth's Chrome on :9223 did not answer), 5 runs, G2's stopwatch (pointerdown → h2 in DOM + 2 rAF)
  14. * Page values (`hl-seed` text): **675 229 → 221 941 chars (−67 %)**. The Code→Readme click ships one websocket frame: **675 265 → 221 977 chars**. Full page HTML (longdoc) 1 319 761 → 866 473; tracker 1 465 979 → 1 071 925 bytes.
  15. * click→text ms (runs; median): 1280 old 2712 2639 2565 2348 2195 (2565) | new 2739 2953 2677 2640 2557 (2677). 390 old 2622 2629 3227 3125 2937 (2937) | new 2440 2592 2399 2736 2916 (2592). Long tasks ~500–800 ms both.
  16. * Honest reading: **no measurable click→text gain** (differences are inside the machine noise); the time is the client building ~2 600 elements (hl:web, Arachne's W85), not parse/copy of the values. The win is 3x smaller values/frames/page HTML and less server serialisation.
  17. ## Proof 3 — gates (deploy.sh GATES, my ports 8720–8723, Chrome 8710–8719, Firefox 8729)
  18. old (cd99d2f): theme check rc 0; browser.mjs **232 passed, 0 failed**. new: theme rc 0; browser.mjs **232 passed, 0 failed**. (One earlier new run had 1 FAIL "chain: Back button" while a stray worktree sat inside my tree and the theme check scanned it; rerun clean: 0 failed.)

Branches

Latest commits

  • 5803cf4f|||PR vendor: Hybriel set-day59 and GC budget 32 MiBmre
  • 9eff6627Merge branch 'f2-api-bugs' into mainGitoria
  • 26117255|||PR apps API: review comments on files with spaces in their namemre
  • b8796cecMerge branch 'f1-broken-json' into mainGitoria
  • 2f2959c5|||PR apps API: broken JSON body gives 400 invalid_json, not 500mre
  • f7c6ca07Merge branch 'ident-chooser-selector' into mainGitoria
  • 691abb8e|||PR tests: find ident identity choice without the removed .choose classmre
  • 16a3530fMerge branch 'heap-revert' into mainGitoria
  • 220a80e0|||PR Remove temporary /__heap route and heap helper; logmre
  • 13f0c342Merge branch 'hl25-records' into mainGitoria
  • a002ecb7|||PR records: HL25 report, heap helper, logmre
  • 2492a55cTemporary keyed /__heap route for the live memory snapshotmre
  • fefaedd2log: tracker PR-only, HL25 startedmre
  • 21aa57calog: parkmre
  • e9f950a8reports: G25c soakmre
  • a7783686log: deploy 9f41ffcmre
  • 9f41ffc1log: W30b mergedmre
  • bef635c1Merge branch 'w30b'mre
  • 15b996a5Org list: keyed rows by @id, newest first, concat instead of hand loopmre
  • c4f6d9e3reports: G25c growth huntmre