For: speed you can see, page by page. One commit's page (commitPage in src/web/pages/commits.ts, GET /:owner/:name/commit/:oid) reports one opaque number in Server-Timing.
Done:
[ ] The handler calls notePhase from src/core/route_timing.ts, the way src/web/pages/releases.ts and src/web/studio/explore.ts do. The phases are session, git (the commit and its diff read), highlight if the diff is highlighted, and render.
[ ] The page renders exactly as today.
[ ] A new test/commit-page-timing.test.ts GETs the page and finds every phase name in Server-Timing. It fails without the change.
Files: src/web/pages/commits.ts, test/commit-page-timing.test.ts.
Risk: none to behaviour. Measure only; do not add caching here.
For: speed you can see, page by page. One commit's page (
commitPageinsrc/web/pages/commits.ts,GET /:owner/:name/commit/:oid) reports one opaque number inServer-Timing.Done:
notePhasefromsrc/core/route_timing.ts, the waysrc/web/pages/releases.tsandsrc/web/studio/explore.tsdo. The phases aresession,git(the commit and its diff read),highlightif the diff is highlighted, andrender.test/commit-page-timing.test.tsGETs the page and finds every phase name inServer-Timing. It fails without the change.Files:
src/web/pages/commits.ts,test/commit-page-timing.test.ts. Risk: none to behaviour. Measure only; do not add caching here.