gitoria
All repositories: gitoria
1.8 KB
# G25b — gitoria#25: the README in milliseconds (branch g25b)What was wrong: opening a repo's README took long again. Every request ran git ls-tree and git cat-file and parsed the Markdown again, and hl:web built the whole page from scratch.What changed: Hybriel is re-vendored to master c09538bb (batch 21 plus the W141 render cache), the Markdown component declares `cacheKey = textHash` (Arachne's patch, applied without conflicts), and `lib/homepage.hl` keeps the finished homepage per commit (slug + commit id of the main branch, 64 entries, 8 million characters, least recently used out first). A cached request costs one git for-each-ref, which also gives the commit id; a push is a new commit id, so the new README shows at once.Proof: tests/readme-cache.mjs (a deploy gate) counts the git calls through a shim: 10 checks, 3 of them fail on main (a repeat request still runs ls-tree and cat-file). On a copy of the newest backup, 14 repos, a fresh server: the cached answer is byte for byte the built answer (timestamp "offline.at" excluded, it changes per request). Against main, the only differences are the hl:web hydration markers around the cached Markdown and the textHash binding in the seed.Gates: browser 261/0 twice (Firefox checks green), security 70/0, signin-return 3/0, readme-cache 10/0, check-theme 0 problems. tests/push.mjs and tests/ssh.mjs crash at #loginbutton on main too (not run by deploy.sh).UPDATE 2026-10-26 (GC1): every cache described above was removed again, together with the gate tests/readme-cache.mjs that only tested them. Reason: a cache that hides a slow page build is not a fix; the creator's ruling is that gitoria is measured without caches and that a slow first load is fixed by shipping less. Hybriel master 652c55f8 dropped the two framework caches (W164). Report: reports/GC1-gitoria-cache-cleanup.md.
Branches
- f1-broken-json
- f2-api-bugs
- gp-gate-ports
- heap-revert
- hl25-records
- ident-chooser-selector
- mainmain branch
- p51-public-pr-reads
- records-1112
- s25-no-session-on-login-error
- v59
- w52-person-approval
- w52b-approval-followup
- w52c-header-phone
- w53-pulls-speed-pr
- w54-repo-rename-pr
- w55-rename-org
- w56-owner-members
- w62-pr-close
- w63-force-push
- w64-org-slash
Latest commits
- a81abdc9gitoria#34: org page via function route, member-reachable orgs, selects, reportmre
- 17f031f0gitoria#34: private repos, organizations, members, move tool, gatemre
- 71b69343gitoria#23: the sidebar's Repositories link was a 404 after any in-page navigation (static menu re-evaluated publicUrl in the browser); the menu is an instance property now; gate taps it after a tab, folder, filemre
- 90b4f728gitoria#25: restore the homepage cache and the parsed-blocks cache (they store data under immutable keys, no HTML); the page key, the framework readme key and the textHash key stay removedmre
- a487248cgitoria#25: remove every cache that hid the page build (page key, Markdown render key, homepage cache, parsed-blocks cache) and the gate that only tested themmre
- 12f2f4fegitoria: re-vendor Hybriel set-day27b, a startup fault in on Error exits 1mre
- c21c084egitoria: write the standby service out in full so the boot gate can read the main servicemre
- e307d69agitoria: say what is per process during the hand-overmre
- f0cbe6a6gitoria: standby service on port 45014 and a deploy that hands over through it without a gapmre
- 727cd083gitoria#25: README: vendor notes for Hybriel c1b1010f and the page cachemre
- 61b72dedgitoria#25: re-vendor Hybriel master c1b1010f (W149 page cache), key the repo Readme page by slug and main commit, extend the readme-cache gatemre
- 5b0b4b9ereadme-cache gate: use the security gate's ports when no own ports are givenmre
- bc8f20d9gitoria#25: re-vendor Hybriel c09538bb with the W141 render cache, cache the homepage per commit, add the readme-cache gatemre
- 9feebbd3Re-vendor Hybriel to ded47c13 (W145: Firefox start script fix)mre
- 28ed41e5gitoria#24: one sign-in comes from hl:web batch 20, the /session/share workaround is gonemre
- 3b2669e4gs: drop the unbuildable legacy check, fix pwa fetchmre
- 2a2fdd77gs: C2 check before cookie experimentsmre
- 76e0587aWIP gs 2mre
- a80da7bdWIP gs: security gate for lazy sessions, g24 browser checksmre
- 23fb05d8re-vendor Hybriel aaa39e69 (hl:web batch 20: login emit and Sessions.mint, tab follows a login, signed-in session cookie wins among duplicates and is re-issued with the Domain, W85 faster render, lazy sessions)mre